- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
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.
링크가 복사됨
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
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.
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
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.
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
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.