QUESTION 1 (TEMPORARLY SOLVED USING Vcpkg)
I have read through all similar/related Questions but I'm at a loss here - I used Cmake to build the VS2019 project files for the ComputeCpp samples according to the Guide (https://developer.codeplay.com/products/computecpp/ce/guides).
I'm not incredibly familiar with Cmake but I've managed to generate them using the Cmake GUI rather than the command line, setting all flags, such as the OpenMP support (but it doesn't seem like thats relevant) - anyways
1>Building ComputeCpp integration header file D:/Google Drive/IM/Semester_4/ModalSynth_GPU/computecpp-sdk-master/computecpp-sdk-master/build/tests/vptr/basic_basic.cc.sycl
1>In file included from D:/Google Drive/IM/Semester_4/ModalSynth_GPU/computecpp-sdk-master/computecpp-sdk-master/tests/vptr/basic.cc:30:
1>In file included from C:/Program Files/Codeplay/ComputeCpp/include\CL/sycl.hpp:1:
1>In file included from C:/Program Files/Codeplay/ComputeCpp/include\CL/../SYCL/sycl.hpp:20:
1>In file included from C:/Program Files/Codeplay/ComputeCpp/include\SYCL/sycl_builtins.h:27:
1>In file included from C:/Program Files/Codeplay/ComputeCpp/include\SYCL/cpp_to_cl_cast.h:12:
1>In file included from C:/Program Files/Codeplay/ComputeCpp/include\SYCL/deduce.h:25:
1>In file included from C:/Program Files/Codeplay/ComputeCpp/include\SYCL/cl_types.h:23:
1>In file included from C:/Program Files/Codeplay/ComputeCpp/include\SYCL/common.h:21:
1>C:/Program Files/Codeplay/ComputeCpp/include\SYCL/include_opencl.h:27:10: fatal error: 'CL/cl.h' file not found
1>#include <CL/cl.h>
1> ^~~~~~~~~
1>1 error generated.
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(231,5): error MSB6006: "cmd.exe" wurde mit dem Code 1 beendet.
1>Die Erstellung des Projekts "basic.vcxproj" ist abgeschlossen -- FEHLER.
========== Erstellen: 0 erfolgreich, 1 fehlerhaft, 0 aktuell, 0 übersprungen ==========
I have added the OpenCl headers to the Additional Include Dirs in the Project Settings. See Screenshots below. I've added the compiler flag for using ptx (compute++ -sycl -sycl-target ptx64 ) - I'm on a Nvidia GTX 1650.
Why does it throw the
C:/Program Files/Codeplay/ComputeCpp/include\SYCL/include_opencl.h:27:10: fatal error: 'CL/cl.h' file not found
error - with the cmd exit code 1
error MSB6006: "cmd.exe" wurde mit dem Code 1 beendet.
?
==============
TEMPORAL SOLUTION and QUESTION 2
I've installed the headers using Vcpkg with the vcpkg install opencl:x64-windows
command - I however have 4 new errors that I am unable to deal with at the moment:
Something seems to be messed up regarding this path - I'm not exactly sure whats happening - what is the c1xx file good for?
Seems like the path D:\Google Drive\IM\Semester_4\ModalSynth_GPU\computecpp-sdk-master\computecpp-sdk-master\build\tests\vptr\basic.cc
is split up
into
D:\Google
and
Drive\IM\Semester_4\ModalSynth_GPU\computecpp-sdk-master\computecpp-sdk-master\build\tests\vptr\basic.cc
Wtf? Thanks.
Here is my computecpp_info output for reference:
********************************************************************************
ComputeCpp Info (CE 2.0.0)
SYCL 1.2.1 revision 3
********************************************************************************
Device Info:
Discovered 1 devices matching:
platform : <any>
device type : <any>
--------------------------------------------------------------------------------
Device 0:
Device is supported : UNTESTED - Vendor not tested on this OS
Bitcode targets : ptx64
CL_DEVICE_NAME : GeForce GTX 1650
CL_DEVICE_VENDOR : NVIDIA Corporation
CL_DRIVER_VERSION : 451.22
CL_DEVICE_TYPE : CL_DEVICE_TYPE_GPU