codeplaysoftware / syclacademy

SYCL Academy, a set of learning materials for SYCL heterogeneous programming
https://sycl.tech
Creative Commons Attribution Share Alike 4.0 International
445 stars 102 forks source link

Trying to getting started with compiling DPC++ but an error occurs #324

Closed orobsonlourenco closed 7 months ago

orobsonlourenco commented 8 months ago

I followed the steps but the cloned repository is incomplete, there is no such file named 'source.cpp'.

I used the comand as following:

icpx -fsycl -I ~/syclacademy/External/Catch2/single_include -o a.out source.cpp

Message error was:

icpx: error: no such file or directory: 'source.cpp' icpx: error: no input files

Does someone knows how to solve this?

DuncanMcBain commented 8 months ago

Hi @orobsonlourenco,

this instruction is a general guide for how to compile any given sample, you will need to point the compiler to the exact source file in each case as you go through and complete the tasks.

rodburns commented 7 months ago

The build instructions are a general guide, you will need to adapt the command to point to the source file you would like to compile. Let us know if we can improve the guidance to help.