orangeduck / Corange

Pure C Game Engine
http://www.youtube.com/watch?v=482GxqTWXtA
Other
1.78k stars 199 forks source link

metaballs demo has issues with newer OpenCL(?) error on clGetPlatformInfo: Invalid value #84

Open choretortle opened 1 year ago

choretortle commented 1 year ago

I'm trying to get back into both programing and Corange, so I'm a little rusty. I switched between two different -D flags to let OpenCL get past the deprecated function errors (one that sets the version, or one that specifies deprecated), but I still get the following error and output in metaballs' "kernel.c":

[DEBUG] (src/corange.c:corange_init:53) Starting Corange... [DEBUG] (src/corange.c:corange_init:56) Creating Asset Manager... [DEBUG] (src/corange.c:corange_init:57) Core Assets At '../../assets_core' ... [DEBUG] (src/corange.c:corange_init:95) Creating Entity Manager... [DEBUG] (src/corange.c:corange_init:110) Creating UI Manager... [DEBUG] (src/corange.c:corange_init:127) Creating Graphics Manager... [DEBUG] (src/corange.c:corange_init:131) Creating Audio Manager... [DEBUG] (src/corange.c:corange_init:135) Creating Joystick Manager... [DEBUG] (src/cjoystick.c:joystick_init:16) Found 0 joysticks [DEBUG] (src/corange.c:corange_init:139) Creating Network Manager... [DEBUG] (src/corange.c:corange_init:142) Finished! [DEBUG] (src/kernel.c:kernels_info:118) OpenCL Info for 1 Platforms [DEBUG] (src/kernel.c:kernels_info:121) Platform: 0 [DEBUG] (src/kernel.c:kernels_info:125) Profile: FULL_PROFILE [DEBUG] (src/kernel.c:kernels_info:129) Version: OpenCL 3.0 CUDA 11.7.102 [DEBUG] (src/kernel.c:kernels_info:133) Name: NVIDIA CUDA [DEBUG] (src/kernel.c:kernels_info:137) Vendor: NVIDIA Corporation [ERROR] (src/kernel.c:kernels_check_error:164) OpenCL error on clGetPlatformInfo: Invalid value