KhronosGroup / OpenCL-ICD-Loader

The OpenCL ICD Loader project.
Apache License 2.0
245 stars 135 forks source link

won't cross-compile any more now that headers changed :( :( #32

Closed hydra3333 closed 6 years ago

hydra3333 commented 6 years ago

Modified header version to be 1.2 for nvidia compatibility (and changed that ONLY). Nothing else changed.

But now this icd loader will not build :( :(

Cross-compile under ubuntu/mingw64 used to work fine up to yesterday.

Log below.

[03:02:21][INFO] C-Making 'opencl_icd' with: . -G"Unix Makefiles" -DCMAKE_SYSTEM_PROCESSOR="x86_64" -DENABLE_STATIC_RUNTIME=1 -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_RANLIB=/home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-ranlib -DCMAKE_C_COMPILER=/home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-gcc -DCMAKE_CXX_COMPILER=/home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-g++ -DCMAKE_RC_COMPILER=/home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-windres -DCMAKE_FIND_ROOT_PATH=/home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32 -DCMAKE_INSTALL_PREFIX=/home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32 -DBUILD_SHARED_LIBS=OFF
-- The C compiler identification is GNU 8.1.1
-- The CXX compiler identification is GNU 8.1.1
-- Check for working C compiler: /home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-gcc
-- Check for working C compiler: /home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-g++
-- Check for working CXX compiler: /home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    ENABLE_STATIC_RUNTIME

-- Build files have been written to: /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git
[03:02:23][INFO] Making 'opencl_icd' with:  in /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git
Scanning dependencies of target IcdLog
Scanning dependencies of target OpenCL
[ 15%] Building C object CMakeFiles/OpenCL.dir/icd_dispatch.c.obj
[ 15%] Building C object test/platform/CMakeFiles/IcdLog.dir/icd_test_log.c.obj
[ 15%] Building C object CMakeFiles/OpenCL.dir/icd.c.obj
[ 15%] Building C object CMakeFiles/OpenCL.dir/icd_windows.c.obj
In file included from /home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/include/CL/cl.h:36,
                 from /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd.h:53,
                 from /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_windows.c:38:
/home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/include/CL/cl_version.h:34:9: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 120 (OpenCL 1.2) for NVIDIA compatibility
 #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 120 (OpenCL 1.2) for NVIDIA compatibility")
         ^~~~~~~
In file included from /home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/include/CL/cl.h:36,
                 from /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.h:58,
                 from /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.c:38:
/home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/include/CL/cl_version.h:34:9: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 120 (OpenCL 1.2) for NVIDIA compatibility
 #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 120 (OpenCL 1.2) for NVIDIA compatibility")
         ^~~~~~~
In file included from /home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/include/CL/cl.h:36,
                 from /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd.h:53,
                 from /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd.c:38:
/home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/include/CL/cl_version.h:34:9: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 120 (OpenCL 1.2) for NVIDIA compatibility
 #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 120 (OpenCL 1.2) for NVIDIA compatibility")
         ^~~~~~~
In file included from /home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/include/CL/cl.h:36,
                 from /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/test/platform/icd_test_log.c:5:
/home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/include/CL/cl_version.h:34:9: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 120 (OpenCL 1.2) for NVIDIA compatibility
 #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 120 (OpenCL 1.2) for NVIDIA compatibility")
         ^~~~~~~
In file included from /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_windows.c:39:
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_windows_hkr.h:58:19: warning: 'DEVPKEY_Device_ClassGuid' initialized and declared 'extern'
 DEFINE_DEVPROPKEY(DEVPKEY_Device_ClassGuid,              0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 10);    // DEVPROP_TYPE_GUID
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_windows_hkr.h:56:124: note: in definition of macro 'DEFINE_DEVPROPKEY'
 #define DEFINE_DEVPROPKEY(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8, pid) extern const DEVPROPKEY DECLSPEC_SELECTANY name = { { l, w1, w2, { b1, b2,  b3,  b4,  b5,  b6,  b7,  b8 } }, pid }
                                                                                                                            ^~~~
[ 19%] Linking C shared library ../../bin/libIcdLog.dll
[ 19%] Built target IcdLog
Scanning dependencies of target OpenCLDriverStub
[ 23%] Building C object test/driver_stub/CMakeFiles/OpenCLDriverStub.dir/cl.c.obj
In file included from /home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/include/CL/cl.h:36,
                 from /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/test/driver_stub/cl.c:17:
/home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/include/CL/cl_version.h:34:9: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 120 (OpenCL 1.2) for NVIDIA compatibility
 #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 120 (OpenCL 1.2) for NVIDIA compatibility")
         ^~~~~~~
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_windows.c: In function 'khrIcdOsVendorsEnumerateOnce':
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_windows.c:135:5: warning: implicit declaration of function 'InitOnceExecuteOnce' [-Wimplicit-function-declaration]
     InitOnceExecuteOnce(&initialized, khrIcdOsVendorsEnumerate, NULL, NULL);
     ^~~~~~~~~~~~~~~~~~~
[ 26%] Building C object CMakeFiles/OpenCL.dir/icd_windows_hkr.c.obj
In file included from /home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/include/CL/cl.h:36,
                 from /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd.h:53,
                 from /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_windows_hkr.c:38:
/home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/include/CL/cl_version.h:34:9: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 120 (OpenCL 1.2) for NVIDIA compatibility
 #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 120 (OpenCL 1.2) for NVIDIA compatibility")
         ^~~~~~~
[ 30%] Building C object test/driver_stub/CMakeFiles/OpenCLDriverStub.dir/cl_ext.c.obj
In file included from /home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/include/CL/cl.h:36,
                 from /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/test/driver_stub/cl_ext.c:4:
/home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/include/CL/cl_version.h:34:9: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 120 (OpenCL 1.2) for NVIDIA compatibility
 #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 120 (OpenCL 1.2) for NVIDIA compatibility")
         ^~~~~~~
In file included from /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_windows_hkr.c:39:
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_windows_hkr.h:58:19: warning: 'DEVPKEY_Device_ClassGuid' initialized and declared 'extern'
 DEFINE_DEVPROPKEY(DEVPKEY_Device_ClassGuid,              0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 10);    // DEVPROP_TYPE_GUID
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_windows_hkr.h:56:124: note: in definition of macro 'DEFINE_DEVPROPKEY'
 #define DEFINE_DEVPROPKEY(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8, pid) extern const DEVPROPKEY DECLSPEC_SELECTANY name = { { l, w1, w2, { b1, b2,  b3,  b4,  b5,  b6,  b7,  b8 } }, pid }
                                                                                                                            ^~~~
[ 34%] Building C object test/driver_stub/CMakeFiles/OpenCLDriverStub.dir/cl_gl.c.obj
In file included from /home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/include/CL/cl.h:36,
                 from /home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/include/CL/cl_gl.h:35,
                 from /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/test/driver_stub/cl_gl.c:1:
/home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/include/CL/cl_version.h:34:9: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 120 (OpenCL 1.2) for NVIDIA compatibility
 #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 120 (OpenCL 1.2) for NVIDIA compatibility")
         ^~~~~~~
In file included from /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.c:38:
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.h:160:11: error: unknown type name 'cl_queue_properties'
     const cl_queue_properties * /* properties */,
           ^~~~~~~~~~~~~~~~~~~
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.h:223:11: error: unknown type name 'cl_pipe_properties'
     const cl_pipe_properties * /* properties */,
           ^~~~~~~~~~~~~~~~~~
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.h:228:5: error: unknown type name 'cl_pipe_info'; did you mean 'cl_image_info'?
     cl_pipe_info /* param_name */,
     ^~~~~~~~~~~~
     cl_image_info
In file included from /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd.c:39:
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.h:160:11: error: unknown type name 'cl_queue_properties'
     const cl_queue_properties * /* properties */,
           ^~~~~~~~~~~~~~~~~~~
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.h:223:11: error: unknown type name 'cl_pipe_properties'
     const cl_pipe_properties * /* properties */,
           ^~~~~~~~~~~~~~~~~~
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.h:235:5: error: unknown type name 'cl_svm_mem_flags'; did you mean 'cl_svm_mem_flags_arm'?
     cl_svm_mem_flags /* flags */,
     ^~~~~~~~~~~~~~~~
     cl_svm_mem_flags_arm
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.h:264:11: error: unknown type name 'cl_sampler_properties'
     const cl_sampler_properties * /* sampler_properties */,
           ^~~~~~~~~~~~~~~~~~~~~
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.h:228:5: error: unknown type name 'cl_pipe_info'; did you mean 'cl_image_info'?
     cl_pipe_info /* param_name */,
     ^~~~~~~~~~~~
     cl_image_info
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.h:406:5: error: unknown type name 'cl_kernel_exec_info'; did you mean 'cl_kernel_exec_info_arm'?
     cl_kernel_exec_info  /* param_name */,
     ^~~~~~~~~~~~~~~~~~~
     cl_kernel_exec_info_arm
In file included from /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.c:38:
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.h:1449:5: error: unknown type name 'KHRpfn_clGetPipeInfo'
     KHRpfn_clGetPipeInfo                            clGetPipeInfo;
     ^~~~~~~~~~~~~~~~~~~~
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.h:1450:5: error: unknown type name 'KHRpfn_clSVMAlloc'
     KHRpfn_clSVMAlloc                               clSVMAlloc;
     ^~~~~~~~~~~~~~~~~
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.h:1459:5: error: unknown type name 'KHRpfn_clSetKernelExecInfo'
     KHRpfn_clSetKernelExecInfo                      clSetKernelExecInfo;
     ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.h:235:5: error: unknown type name 'cl_svm_mem_flags'; did you mean 'cl_svm_mem_flags_arm'?
     cl_svm_mem_flags /* flags */,
     ^~~~~~~~~~~~~~~~
     cl_svm_mem_flags_arm
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.h:264:11: error: unknown type name 'cl_sampler_properties'
     const cl_sampler_properties * /* sampler_properties */,
           ^~~~~~~~~~~~~~~~~~~~~
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.c:2309:11: error: unknown type name 'cl_queue_properties'
     const cl_queue_properties * properties,
           ^~~~~~~~~~~~~~~~~~~
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.c:2326:11: error: unknown type name 'cl_pipe_properties'
     const cl_pipe_properties * properties,
           ^~~~~~~~~~~~~~~~~~
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.c:2342:5: error: unknown type name 'cl_pipe_info'; did you mean 'cl_image_info'?
     cl_pipe_info param_name,
     ^~~~~~~~~~~~
     cl_image_info
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.h:406:5: error: unknown type name 'cl_kernel_exec_info'; did you mean 'cl_kernel_exec_info_arm'?
     cl_kernel_exec_info  /* param_name */,
     ^~~~~~~~~~~~~~~~~~~
     cl_kernel_exec_info_arm
In file included from /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd.c:39:
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.h:1449:5: error: unknown type name 'KHRpfn_clGetPipeInfo'
     KHRpfn_clGetPipeInfo                            clGetPipeInfo;
     ^~~~~~~~~~~~~~~~~~~~
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.h:1450:5: error: unknown type name 'KHRpfn_clSVMAlloc'
     KHRpfn_clSVMAlloc                               clSVMAlloc;
     ^~~~~~~~~~~~~~~~~
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.h:1459:5: error: unknown type name 'KHRpfn_clSetKernelExecInfo'
     KHRpfn_clSetKernelExecInfo                      clSetKernelExecInfo;
     ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.c:2359:5: error: unknown type name 'cl_svm_mem_flags'; did you mean 'cl_svm_mem_flags_arm'?
     cl_svm_mem_flags flags,
     ^~~~~~~~~~~~~~~~
     cl_svm_mem_flags_arm
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.c:2502:11: error: unknown type name 'cl_sampler_properties'
     const cl_sampler_properties *  sampler_properties,
           ^~~~~~~~~~~~~~~~~~~~~
CMakeFiles/OpenCL.dir/build.make:63: recipe for target 'CMakeFiles/OpenCL.dir/icd.c.obj' failed
make[2]: *** [CMakeFiles/OpenCL.dir/icd.c.obj] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.c:2528:5: error: unknown type name 'cl_kernel_exec_info'; did you mean 'cl_kernel_exec_info_arm'?
     cl_kernel_exec_info  param_name,
     ^~~~~~~~~~~~~~~~~~~
     cl_kernel_exec_info_arm
[ 38%] Building C object test/driver_stub/CMakeFiles/OpenCLDriverStub.dir/icd.c.obj
CMakeFiles/OpenCL.dir/build.make:88: recipe for target 'CMakeFiles/OpenCL.dir/icd_dispatch.c.obj' failed
make[2]: *** [CMakeFiles/OpenCL.dir/icd_dispatch.c.obj] Error 1
In file included from /home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/include/CL/cl.h:36,
                 from /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/test/driver_stub/icd.c:15:
/home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/include/CL/cl_version.h:34:9: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 120 (OpenCL 1.2) for NVIDIA compatibility
 #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 120 (OpenCL 1.2) for NVIDIA compatibility")
         ^~~~~~~
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_windows_hkr.c: In function 'khrIcdOsVendorsEnumerateHKR':
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_windows_hkr.c:354:23: warning: implicit declaration of function 'CM_Get_DevNode_PropertyW'; did you mean 'CM_Set_DevNode_Problem'? [-Wimplicit-function-declaration]
                 ret = CM_Get_DevNode_PropertyW(
                       ^~~~~~~~~~~~~~~~~~~~~~~~
                       CM_Set_DevNode_Problem
[ 42%] Linking C shared library ../../bin/libOpenCLDriverStub.dll
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/OpenCL.dir/all' failed
make[1]: *** [CMakeFiles/OpenCL.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 42%] Built target OpenCLDriverStub
Makefile:94: recipe for target 'all' failed
make: *** [all] Error 2
[03:02:26][ERROR] Error [2] running process: 'make  -j 4' in '/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git'
[03:02:26][ERROR] You can try deleting the product/dependency folder: '/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git' and re-run the script
+ exit 1
jrprice commented 6 years ago

There should be no need to modify the headers or ICD sources to change the default version.

The ICD loader sources target the latest version of OpenCL, and so will need all of the type and function declarations for OpenCL 2.2. This isn't a problem since it is also backwards compatible, so it will still work with OpenCL 1.2 implementations.

hydra3333 commented 6 years ago

OK. The latest headers commit as of about yesterday says you now need to set a header version number or it defaults to version 2.2 and then says how to do it. They've also moved the git folder structure around a bit.

Nvidia says they are only version 1.2 compatible which is why I specified the version, not knowing nay better.

Are you saying to just build the icd loader with version 2.2 (when it is finally fixed to cross-compile OK with the latest headers) and at runtime it'll settle on version 1.2 when it finds nvidia driver's OpenCL ?

hydra3333 commented 6 years ago

ok, I let it default to version 2.2 and the ICD loader cross-compiled OK. We'll see what happens at runtime :)

kepatil commented 6 years ago

Yes. That's how the ICD Loader is supposed to work.

hydra3333 commented 6 years ago

ok, great.