- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Sorry, if that question was previously asked. I couldn't find any hint about it.
I have a compiled offload binary, is it possible to make it run on CPU only with some environment variable?
I saw something about setting "export OFFLOAD_DEVICES=" but then I get the following error :
offload error: cannot offload to MIC - device is not available
Thanks for your help.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You are correct in that defining the variable to an empty value causes the offloaded code to execute on the CPU but with the following exception. The offload default is mandatory so you must add the optional specifier on the offload pragma/directive to be able to force the execution on the CPU using the OFFLOAD_DEVICES= setting.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Kevin,
That did the trick.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Great! You're welcome.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page