Closed Laranga22 closed 1 week ago
The above header is from an other project: https://github.com/oneapi-src/syclomatic
Since your above code looks like it has been ported using the above tool, you would need to have SYCLomatic/DPCT installed and needs to be added to PATH
and LD_LIBRARY_PATH
envs
@Laranga22 hello, could you please confirm that the @abagusetty's reply helped you?
@Laranga22 I hope that you found @abagusetty's reply above helpful. Closing the issue. Feel free to re-open if the problem is still exists for you.
Describe the bug
I am trying to execute SYCL code in a NVidia GPU. I added the compiler and its libs to the path but I am encountering this issue. Is someone else alo encountering this issue?
To reproduce
int main() try { dpct::device_ext &dev_ct1 = dpct::get_current_device(); sycl::queue &q_ct1 = dev_ct1.in_order_queue(); float d_A, d_B, *d_C; dpct::err0 status;
} catch (sycl::exception const &exc) { std::cerr << exc.what() << "Exception caught at file:" << FILE << ", line:" << LINE << std::endl; std::e
vector_add.dp.cpp:8:10: fatal error: 'dpct/dpct.hpp' file not found 8 | #include <dpct/dpct.hpp> | ^
~~~~~~ 1 error generated.clang version 19.0.0git (https://github.com/intel/llvm.git ef62cadd678e0c3a8b7eb70816e8d5cee526d2fd) Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /mnt/c/Users/tamar/llvm/build/bin Build config: +assertions
export PATH="/PATH/llvm/build/bin:$PATH" export LD_LIBRARY_PATH="/PATH/llvm/build/lib:$LD_LIBRARY_PATH"