You are viewing a plain text version of this content. The canonical link for it is here.
Posted to discuss-archive@tvm.apache.org by Yueming Xu via TVM Discuss <no...@discuss.tvm.ai> on 2020/04/02 06:38:45 UTC

[TVM Discuss] [Questions] How to specify target on macbook pro


I am trying to run the following code on my macbook pro, but do not know how to set the value for "target". I built tvm from source code, downloaded latest version of llvm for mac, which appears built ok, but cuda does not work because I could not find a cuda driver for mac. appreciate your help.

```
#target = tvm.target.arm_cpu()
target = tvm.target.cuda()
with relay.build_config(opt_level=opt_level):
    graph, lib, params = relay.build(mod, target, params=params)
```





---
[Visit Topic](https://discuss.tvm.ai/t/how-to-specify-target-on-macbook-pro/6182/1) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.ai/email/unsubscribe/d930804f98aa7ec22f800bc3ea0fae6c18b596ca7bb6a78d0154ee925840f63b).

[TVM Discuss] [Questions] How to specify target on macbook pro

Posted by Yueming Xu via TVM Discuss <no...@discuss.tvm.ai>.

OK, Thanks. I guess that on Mac, I would have to use target='llvm' and ignore the warning "Cannot find config for target=llvm, workload=('dense_nopack.x86''.





---
[Visit Topic](https://discuss.tvm.ai/t/how-to-specify-target-on-macbook-pro/6182/3) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.ai/email/unsubscribe/6274acedd01d5d218609ca98e35402fe8596a861f29e14430b60acb9179957f5).

[TVM Discuss] [Questions] How to specify target on macbook pro

Posted by JC Li via TVM Discuss <no...@discuss.tvm.ai>.

Mac hasn't used nvidia graphic card for a LONG time (>5 years?), which means your laptop doesn't support a CUDA-enabled device. You'll need a new platform to try cuda.





---
[Visit Topic](https://discuss.tvm.ai/t/how-to-specify-target-on-macbook-pro/6182/2) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.ai/email/unsubscribe/3e8dc9d51397d9effc1f68f14322dc446259b60d548849f844b0d9ccf9e0b624).