Skip to content

How do I split the source file into host and device to compile separately #3244

Answered by keryell
malixian asked this question in Q&A
Discussion options

You must be logged in to vote

Since SYCL is pure C++, if you compile the SYCL code with a normal host compiler, you should have the host code and it will work also on the host CPU.
Is this what you are locking for?
This is called host fallback mode in the SYCL jargon.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AlexeySachkov
Comment options

Answer selected by AGindinson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants