compilation problem
Hello, I was trying to install aquagpush on my laptop (linux Ubuntu 22.04) I was following the wiki, and after the execution of the following command :
cmake -DAQUAGPUSPH_3D=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ../aquagpusph && make && cmake -DAQUAGPUSPH_3D=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ../aquagpusph && make
we got the following error in the terminal :
[ 57%] Building CXX object src/CalcServer/CMakeFiles/AQUAgpusphServer.dir/CalcServer.cpp.o /home/ugo.rt/aquagpusph/src/CalcServer/CalcServer.cpp:789:28: error: operator '>' has no left operand 789 | #if (OPENCL_PLATFORM_MAJOR > 1) | ^ /home/ugo.rt/aquagpusph/src/CalcServer/CalcServer.cpp: In function ‘_cl_command_queue* Aqua::CalcServer::create_command_queue(cl_context, cl_device_id, cl_int*)’: /home/ugo.rt/aquagpusph/src/CalcServer/CalcServer.cpp:798:36: warning: ‘_cl_command_queue* clCreateCommandQueue(cl_context, cl_device_id, cl_command_queue_properties, cl_int*)’ is deprecated [-Wdeprecated-declarations] 798 | return clCreateCommandQueue(context, device, properties, errcode_ret); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/ugo.rt/aquagpusph/include/sphPrerequisites.h:49, from /home/ugo.rt/aquagpusph/include/CalcServer.h:32, from /home/ugo.rt/aquagpusph/src/CalcServer/CalcServer.cpp:32: /usr/include/CL/cl.h:1906:1: note: declared here 1906 | clCreateCommandQueue(cl_context context, | ^~~~~~~~~~~~~~~~~~~~ make[2]: *** [src/CalcServer/CMakeFiles/AQUAgpusphServer.dir/build.make:90 : src/CalcServer/CMakeFiles/AQUAgpusphServer.dir/CalcServer.cpp.o] Erreur 1 make[1]: *** [CMakeFiles/Makefile2:1586 : src/CalcServer/CMakeFiles/AQUAgpusphServer.dir/all] Erreur 2
this is the result of the command clinfo : Number of platforms 1 Platform Name NVIDIA CUDA Platform Vendor NVIDIA Corporation Platform Version OpenCL 3.0 CUDA 12.4.131 Platform Profile FULL_PROFILE Platform Extensions cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_fp64 cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_copy_opts cl_nv_create_buffer cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_device_uuid cl_khr_pci_bus_info cl_khr_external_semaphore cl_khr_external_memory cl_khr_external_semaphore_opaque_fd cl_khr_external_memory_opaque_fd ...
Thank you for your help, regards
Ricard Ugo