You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/11/29 19:07:27 UTC

[GitHub] [tvm] gromero opened a new issue #9607: [Bug] "KeyError: 'arduino_cli_cmd'" on `tvmc micro create ... arduino`

gromero opened a new issue #9607:
URL: https://github.com/apache/tvm/issues/9607


   
   
   ### Expected behavior
   
   ```
   $ tvmc micro create --force /tmp/x9584 ~/scripts/sine.tar arduino --project-option project_type=host_driven
   ```
   This `tvmc` command should finish without any error, correctly generating a project dir in `/tmp/x9584`
   
   
   ### Actual behavior
   
   ```
   gromero@amd:~/git/tvm$ tvmc micro create --force /tmp/x9584 ~/scripts/sine.tar arduino --project-option project_type=host_driven 
   [19:01:56] /home/gromero/git/tvm/src/target/target_kind.cc:191: Warning: Unable to detect CUDA version, default to "-mcpu=sm_20" instead
   [19:01:56] /home/gromero/git/tvm/src/target/target_kind.cc:217: Warning: Unable to detect ROCm compute arch, default to "-mcpu=gfx900" instead
   [19:01:56] /home/gromero/git/tvm/src/target/target_kind.cc:231: Warning: Unable to detect ROCm version, assuming >= 3.5
   [19:01:56] /home/gromero/git/tvm/src/target/target_kind.cc:163: Warning: Unable to detect CUDA version, default to "-arch=sm_20" instead
   [19:01:56] /home/gromero/git/tvm/src/target/target_kind.cc:191: Warning: Unable to detect CUDA version, default to "-mcpu=sm_20" instead
   [19:01:56] /home/gromero/git/tvm/src/target/target_kind.cc:217: Warning: Unable to detect ROCm compute arch, default to "-mcpu=gfx900" instead
   [19:01:56] /home/gromero/git/tvm/src/target/target_kind.cc:231: Warning: Unable to detect ROCm version, assuming >= 3.5
   [19:01:56] /home/gromero/git/tvm/src/target/target_kind.cc:163: Warning: Unable to detect CUDA version, default to "-arch=sm_20" instead
   The following error occured on the Project API server side: 
    calling method generate_project: JSON-RPC error # -32000: calling method generate_project
   Traceback (most recent call last):
     File "/home/gromero/git/tvm/python/tvm/micro/project_api/server.py", line 481, in serve_one_request  # <--- Outermost server-side stack frame
       self._dispatch_request(request)
     File "/home/gromero/git/tvm/python/tvm/micro/project_api/server.py", line 593, in _dispatch_request
       return_value = dispatch_method(**params)
     File "/home/gromero/git/tvm/python/tvm/micro/project_api/server.py", line 621, in _dispatch_generate_project
       return self._handler.generate_project(
     File "/home/gromero/git/tvm/build/microtvm_template_projects/arduino/microtvm_api_server.py", line 320, in generate_project
       version = self._get_platform_version(options["arduino_cli_cmd"])
   KeyError: 'arduino_cli_cmd'
   ```
   
   ### Environment
   
   Any if `USE_MICRO` and `tvmc` is enabled/installed
   
   ### Steps to reproduce
   
   `$ tvmc micro create <any_tmp_project_dir> <path_to_a_compiled_model_saved_as_MLF> arduino --project-option project_type=host_driven`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] mehrdadh commented on issue #9607: [Bug] "KeyError: 'arduino_cli_cmd'" on `tvmc micro create ... arduino`

Posted by GitBox <gi...@apache.org>.
mehrdadh commented on issue #9607:
URL: https://github.com/apache/tvm/issues/9607#issuecomment-984489221


   @gromero I think this is fixed now?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] gromero closed issue #9607: [Bug] "KeyError: 'arduino_cli_cmd'" on `tvmc micro create ... arduino`

Posted by GitBox <gi...@apache.org>.
gromero closed issue #9607:
URL: https://github.com/apache/tvm/issues/9607


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] gromero commented on issue #9607: [Bug] "KeyError: 'arduino_cli_cmd'" on `tvmc micro create ... arduino`

Posted by GitBox <gi...@apache.org>.
gromero commented on issue #9607:
URL: https://github.com/apache/tvm/issues/9607#issuecomment-988315132


   @mehrdadh absolutely. Thanks for the ping and sorry leaving it opened : )
   
   I'm closing since it's fixed by https://github.com/apache/tvm/pull/9584


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] gromero commented on issue #9607: [Bug] "KeyError: 'arduino_cli_cmd'" on `tvmc micro create ... arduino`

Posted by GitBox <gi...@apache.org>.
gromero commented on issue #9607:
URL: https://github.com/apache/tvm/issues/9607#issuecomment-981932498


   This happens because even if `arduino_cli_cmd` option in `PROJECT_OPTIONS` has not `"generate_project"` listed in `required`  list.  


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org