- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would like to compile SYCL host code with g++ and SYCL device code with icpx. Reason being that g++ integrates better with my existing workflow. I compile some C++ code that only uses the host API as follows:
icpx -fsycl hostcode.cpp -o hostcode
What would the equivalent g++ invocation be?
g++ hostcode.cpp -I/some/path -L/some/path -fblah ... -o hostcode
Some sources claim that this workflow should be possible, though they don't specify how to do it with g++: https://github.com/intel/llvm/issues/12457 https://github.com/intel/llvm/blob/sycl/sycl/doc/FAQ.md#q-how-are-dpc-compilation-phases-different-from-those-of-a-usual-c-compiler-can-i-customize-this-flow-for-my-applications
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Since this is an Intel dpcpp/c++ compiler forum, we focus on investigating issues related to icx, but I'll leave your question here so others might be able to contribute their thoughts.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tbh, having icpx doing "everything" doesn't work well for me since I'm targeting FPGAs and synthesizing takes hours. I don't want to wait hours when I just change the host code.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page