- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am trying to setup and configure oneAPI on my Fedora 40 linux system.
I have installed oneAPI through the GUI, created the vector-add sample through the CLI, and ran setvars.sh. I then create the build folder, run 'cmake ..', and then 'make cpu-gpu'
I then get this error:
c++: error: unrecognized command-line option ‘-fsycl’
Is there something really simple I am missing? Any help would be much appreciated.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, can you try to compile the code manually using icpx, the command line should be something like "icpx -fsycl code.cpp ". icpx is the sycl compiler provided in oneapi basekit. Based on the error message, it seems that you're not using a sycl aware compiler.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Using icpx from the command line worked. Thank you for that!
In case it is helpful, I arrived at this situation through the following sequence of events:
And from there, on the right side of the page, a link to the documentation on running the sample code vector-add:
In this github page, the instructions just have me use 'make cpu-gpu', which seems to invoke the c++ command rather than icpx.
This all seems to be official Intel documentation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I followed the steps in the oneapi samples but see no issues there. My best guess is there's something wrong in your configuration steps, as the project seems to be configured with c++ as the compiler.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page