Finally got it to compile on Visual studio 2017 but now the program shows the following error when compiling the sample
Error: [ComputeCpp:RT0100] Failed to build program (<Build log for program 0000019225E52060 device 0 (size 121):
Error: HSAIL doesn’t support OpenCL extension spir.
An invalid binary was detected.
Error: BRIG code generation failed.
Assuming, the device you are using is an AMD GPU, this error means that your graphics card’s OpenCL drivers do not support SPIR.
SPIR is an intermediate representation language that enables the creation and distribution of device-independent binaries within the OpenCL stack, which means that SYCL code cannot be compiled for a device which does not provide SPIR support, which is usually enabled by the cl_khr_spir extension.
Option 1
In this case, you may want to opt for an older AMD GPU driver but I cannot guarantee this would work, since I have not tried any of the AMD drivers on Windows.
Option 2 Modify your code to run on either the CPU or Host device using cpu_selector or host_selector when initializing your queue.
Update:
Could you also run computecpp_info which is located in the bin/ folder of where ComputeCpp is installed on your machine ? This will output some more information about your platforms and devices.
I will try installing an old driver version which probably will work, do you know where would be located the files for SPIR in AMD drivers? would it belong to some opencl dll?