Home › Forum › SOFA › Getting Started › [SOLVED] Problems in the installation of SofaOpenCL plugin
Tagged: 64_bits, Linux_ubuntu, Plugin_CUDA, SOFA_1912
- This topic has 6 replies, 3 voices, and was last updated 4 years, 4 months ago by
Hugo.
-
AuthorPosts
-
27 April 2020 at 19:34 #15959
Pasquale94
BlockedHi again,
I am trying to exploit the parallel GPU and CPU computation for SOFA scenes,( my OS is Ubuntu 18.04). I have alredy downloaded Nvidia and Cuda drivers for my graphic card (Quadro RTX 3000) and now I want to install SOFACUDA and SOFAOpenCL plugin ( as I read in Cmakelists.txt SofaCuda plugin is dependent on OpenCL one).During the installation of SofaOpenCL I encountered a lot of problems, due to some coding errors in many files of the plugin.
First of all, it appears:
/home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLFixedConstraint.inl:196:12: error: ‘sofa::component::projectiveconstraintset::FixedConstraintInternalData<sofa::gpu::opencl::OpenCLVectorTypes<sofa::defaulttype::Vec<3, float>, sofa::defaulttype::Vec<3, float>, float> >::Main {aka class sofa::component::projectiveconstraintset::FixedConstraint<sofa::gpu::opencl::OpenCLVectorTypes<sofa::defaulttype::Vec<3, float>, sofa::defaulttype::Vec<3, float>, float> >}’ has no member named ‘f_fixAll’; did you mean ‘d_fixAll’? if (m->f_fixAll.getValue()) ^~~~~~~~ d_fixAll
this error was repetitive in the same file and I fixed just substituting the variable f_fixAll with d_fixAll
Then typing make again, this error will appear:
/home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLIdentityMapping.cpp:64:16: error: duplicate explicit instantiation of ‘class sofa::component::mapping::IdentityMapping<sofa::gpu::opencl::OpenCLVectorTypes<sofa::defaulttype::Vec<3, float>, sofa::defaulttype::Vec<3, float>, float>, sofa::defaulttype::StdVectorTypes<sofa::defaulttype::Vec<3, double>, sofa::defaulttype::Vec<3, double>, double> >’ [-fpermissive] template class IdentityMapping< OpenCLVec3Types, Vec3Types>;
also this error is repetitive in thefile and I fixed just comment out the line where there are the errors.
Then, another error will appear :
/home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.inl:81:52: error: ‘d_mass’ was not declared in this scope UniformMassOpenCL3d_addMDx(dx.size(), (double)(d_mass.getValue()*d_factor), f.deviceWrite(), dx.deviceRead()); ^~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.inl:81:52: note: suggested alternative: ‘fd_mask’ UniformMassOpenCL3d_addMDx(dx.size(), (double)(d_mass.getValue()*d_factor), f.deviceWrite(), dx.deviceRead()); ^~~~~~ fd_mask
And I fix it substituting the variable d_mass with fd_mask.
Now I have this other errors, In this file, and I`m blocked in how to risolve it:
home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:77:14: error: ‘cout’ is not a member of ‘sofa::std’ std::cout << UniformMassOpenCLFloat_program->buildLog(0); /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:77:54: error: ‘class sofa::sofa::gpu::opencl::OpenCLProgram’ has no member named ‘buildLog’; did you mean ‘buildProgram’? std::cout << UniformMassOpenCLFloat_program->buildLog(0); ^~~~~~~~ buildProgram /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp: At global scope: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:92:71: error: ‘_device_pointer’ has not been declared id UniformMassOpenCL3f_addForce(unsigned int size, const float* mg, _device_pointer f) ^~~~~~~~~~~~~~~ In file included from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLMemoryManager.h:26:0, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLTypes.h:32, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:22: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp: In function ‘void sofa::sofa::gpu::opencl::UniformMassOpenCL3f_addForce(unsigned int, const float*, int)’: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:36:31: error: request for member ‘offset’ in ‘f’, which is of non-class type ‘int’ #define ERROR_OFFSET(t) {if(t.offset!=0){printf("Error Offset %s %d: %s %d\n",__FILE__,__LINE__,#t,(int)t.offset);exit(-1);}} ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:95:5: note: in expansion of macro ‘ERROR_OFFSET’ ERROR_OFFSET(f); ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:36:107: error: request for member ‘offset’ in ‘f’, which is of non-class type ‘int’ 0){printf("Error Offset %s %d: %s %d\n",__FILE__,__LINE__,#t,(int)t.offset);exit(-1);}} ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:95:5: note: in expansion of macro ‘ERROR_OFFSET’ ERROR_OFFSET(f); ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:97:30: error: ‘OpenCLMemoryManager’ is not a member of ‘sofa::sofa::gpu::opencl’ int BSIZE = gpu::opencl::OpenCLMemoryManager<float>::BSIZE; ^~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:97:30: note: suggested alternative: ‘OpenCLKernel’ int BSIZE = gpu::opencl::OpenCLMemoryManager<float>::BSIZE; ^~~~~~~~~~~~~~~~~~~ OpenCLKernel /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:97:50: error: expected primary-expression before ‘float’ int BSIZE = gpu::opencl::OpenCLMemoryManager<float>::BSIZE; ^~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:104:49: error: ‘_device_pointer’ was not declared in this scope UniformMassOpenCL3f_addForce_kernel->setArg<_device_pointer>(4,&f); ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:104:49: note: suggested alternatives: In file included from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLMemoryManager.h:26:0, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLTypes.h:32, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:22: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:66:7: note: ‘sofa::gpu::opencl::_device_pointer’ } _device_pointer; ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:66:7: note: ‘sofa::gpu::opencl::_device_pointer’ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:104:70: error: no matching function for call to ‘sofa::sofa::gpu::opencl::OpenCLKernel::setArg<<expression error> >(int, int*)’ UniformMassOpenCL3f_addForce_kernel->setArg<_device_pointer>(4,&f); ^ In file included from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:28:0: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLKernel.h:54:10: note: candidate: template<class T> void sofa::sofa::gpu::opencl::OpenCLKernel::setArg(int, const T*) void setArg(int numArg,const T* arg) ^~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLKernel.h:54:10: note: template argument deduction/substitution failed: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:104:70: error: template argument 1 is invalid UniformMassOpenCL3f_addForce_kernel->setArg<_device_pointer>(4,&f); ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp: At global scope: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:117:64: error: ‘_device_pointer’ has not been declared void UniformMassOpenCL3f_addMDx(unsigned int size, float mass, _device_pointer res, const _device_pointer dx) ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:117:91: error: ‘_device_pointer’ does not name a type; did you mean ‘cl_device_info’? 3f_addMDx(unsigned int size, float mass, _device_pointer res, const _device_pointer dx) ^~~~~~~~~~~~~~~ cl_device_info In file included from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLMemoryManager.h:26:0, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLTypes.h:32, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:22: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp: In function ‘void sofa::sofa::gpu::opencl::UniformMassOpenCL3f_addMDx(unsigned int, float, int, int)’: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:36:31: error: request for member ‘offset’ in ‘res’, which is of non-class type ‘int’ #define ERROR_OFFSET(t) {if(t.offset!=0){printf("Error Offset %s %d: %s %d\n",__FILE__,__LINE__,#t,(int)t.offset);exit(-1);}} ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:120:5: note: in expansion of macro ‘ERROR_OFFSET’ ERROR_OFFSET(res) ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:36:107: error: request for member ‘offset’ in ‘res’, which is of non-class type ‘int’ 0){printf("Error Offset %s %d: %s %d\n",__FILE__,__LINE__,#t,(int)t.offset);exit(-1);}} ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:120:5: note: in expansion of macro ‘ERROR_OFFSET’ ERROR_OFFSET(res) ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:36:31: error: request for member ‘offset’ in ‘dx’, which is of non-class type ‘const int’ #define ERROR_OFFSET(t) {if(t.offset!=0){printf("Error Offset %s %d: %s %d\n",__FILE__,__LINE__,#t,(int)t.offset);exit(-1);}} ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:121:5: note: in expansion of macro ‘ERROR_OFFSET’ ERROR_OFFSET(dx) ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:36:107: error: request for member ‘offset’ in ‘dx’, which is of non-class type ‘const int’ 0){printf("Error Offset %s %d: %s %d\n",__FILE__,__LINE__,#t,(int)t.offset);exit(-1);}} ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:121:5: note: in expansion of macro ‘ERROR_OFFSET’ ERROR_OFFSET(dx) ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:124:30: error: ‘OpenCLMemoryManager’ is not a member of ‘sofa::sofa::gpu::opencl’ int BSIZE = gpu::opencl::OpenCLMemoryManager<float>::BSIZE; ^~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:124:30: note: suggested alternative: ‘OpenCLKernel’ int BSIZE = gpu::opencl::OpenCLMemoryManager<float>::BSIZE; ^~~~~~~~~~~~~~~~~~~ OpenCLKernel /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:124:50: error: expected primary-expression before ‘float’ int BSIZE = gpu::opencl::OpenCLMemoryManager<float>::BSIZE; ^~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:130:47: error: ‘_device_pointer’ was not declared in this scope UniformMassOpenCL3f_addMDX_kernel->setArg<_device_pointer>(1,&res); ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:130:47: note: suggested alternatives: In file included from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLMemoryManager.h:26:0, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLTypes.h:32, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:22: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:66:7: note: ‘sofa::gpu::opencl::_device_pointer’ } _device_pointer; ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:66:7: note: ‘sofa::gpu::opencl::_device_pointer’ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:130:70: error: no matching function for call to ‘sofa::sofa::gpu::opencl::OpenCLKernel::setArg<<expression error> >(int, int*)’ UniformMassOpenCL3f_addMDX_kernel->setArg<_device_pointer>(1,&res); ^ In file included from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:28:0: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLKernel.h:54:10: note: candidate: template<class T> void sofa::sofa::gpu::opencl::OpenCLKernel::setArg(int, const T*) void setArg(int numArg,const T* arg) ^~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLKernel.h:54:10: note: template argument deduction/substitution failed: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:130:70: error: template argument 1 is invalid UniformMassOpenCL3f_addMDX_kernel->setArg<_device_pointer>(1,&res); ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:131:69: error: no matching function for call to ‘sofa::sofa::gpu::opencl::OpenCLKernel::setArg<_device_pointer>(int, const int*)’ UniformMassOpenCL3f_addMDX_kernel->setArg<_device_pointer>(2,&dx); ^ In file included from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:28:0: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLKernel.h:54:10: note: candidate: template<class T> void sofa::sofa::gpu::opencl::OpenCLKernel::setArg(int, const T*) void setArg(int numArg,const T* arg) ^~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLKernel.h:54:10: note: template argument deduction/substitution failed: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp: At global scope: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:143:66: error: ‘_device_pointer’ has not been declared void UniformMassOpenCL3f_accFromF(unsigned int size, float mass, _device_pointer a, const _device_pointer f) ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:143:91: error: ‘_device_pointer’ does not name a type; did you mean ‘cl_device_info’? 3f_accFromF(unsigned int size, float mass, _device_pointer a, const _device_pointer f) ^~~~~~~~~~~~~~~ cl_device_info In file included from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLMemoryManager.h:26:0, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLTypes.h:32, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:22: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp: In function ‘void sofa::sofa::gpu::opencl::UniformMassOpenCL3f_accFromF(unsigned int, float, int, int)’: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:36:31: error: request for member ‘offset’ in ‘a’, which is of non-class type ‘int’ #define ERROR_OFFSET(t) {if(t.offset!=0){printf("Error Offset %s %d: %s %d\n",__FILE__,__LINE__,#t,(int)t.offset);exit(-1);}} ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:147:5: note: in expansion of macro ‘ERROR_OFFSET’ ERROR_OFFSET(a) ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:36:107: error: request for member ‘offset’ in ‘a’, which is of non-class type ‘int’ 0){printf("Error Offset %s %d: %s %d\n",__FILE__,__LINE__,#t,(int)t.offset);exit(-1);}} ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:147:5: note: in expansion of macro ‘ERROR_OFFSET’ ERROR_OFFSET(a) ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:36:31: error: request for member ‘offset’ in ‘f’, which is of non-class type ‘const int’ #define ERROR_OFFSET(t) {if(t.offset!=0){printf("Error Offset %s %d: %s %d\n",__FILE__,__LINE__,#t,(int)t.offset);exit(-1);}} ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:148:5: note: in expansion of macro ‘ERROR_OFFSET’ ERROR_OFFSET(f) ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:36:107: error: request for member ‘offset’ in ‘f’, which is of non-class type ‘const int’ 0){printf("Error Offset %s %d: %s %d\n",__FILE__,__LINE__,#t,(int)t.offset);exit(-1);}} ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:148:5: note: in expansion of macro ‘ERROR_OFFSET’ ERROR_OFFSET(f) ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:152:30: error: ‘OpenCLMemoryManager’ is not a member of ‘sofa::sofa::gpu::opencl’ int BSIZE = gpu::opencl::OpenCLMemoryManager<float>::BSIZE; ^~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:152:30: note: suggested alternative: ‘OpenCLKernel’ int BSIZE = gpu::opencl::OpenCLMemoryManager<float>::BSIZE; ^~~~~~~~~~~~~~~~~~~ OpenCLKernel /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:152:50: error: expected primary-expression before ‘float’ int BSIZE = gpu::opencl::OpenCLMemoryManager<float>::BSIZE; ^~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:158:49: error: ‘_device_pointer’ was not declared in this scope UniformMassOpenCL3f_accFromF_kernel->setArg<_device_pointer>(1,&a); ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:158:49: note: suggested alternatives: In file included from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLMemoryManager.h:26:0, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLTypes.h:32, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:22: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:66:7: note: ‘sofa::gpu::opencl::_device_pointer’ } _device_pointer; ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:66:7: note: ‘sofa::gpu::opencl::_device_pointer’ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:158:70: error: no matching function for call to ‘sofa::sofa::gpu::opencl::OpenCLKernel::setArg<<expression error> >(int, int*)’ UniformMassOpenCL3f_accFromF_kernel->setArg<_device_pointer>(1,&a); ^ In file included from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:28:0: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLKernel.h:54:10: note: candidate: template<class T> void sofa::sofa::gpu::opencl::OpenCLKernel::setArg(int, const T*) void setArg(int numArg,const T* arg) ^~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLKernel.h:54:10: note: template argument deduction/substitution failed: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:158:70: error: template argument 1 is invalid UniformMassOpenCL3f_accFromF_kernel->setArg<_device_pointer>(1,&a); ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:159:70: error: no matching function for call to ‘sofa::sofa::gpu::opencl::OpenCLKernel::setArg<_device_pointer>(int, const int*)’ UniformMassOpenCL3f_accFromF_kernel->setArg<_device_pointer>(2,&f); ^ In file included from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:28:0: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLKernel.h:54:10: note: candidate: template<class T> void sofa::sofa::gpu::opencl::OpenCLKernel::setArg(int, const T*) void setArg(int numArg,const T* arg) ^~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLKernel.h:54:10: note: template argument deduction/substitution failed: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp: At global scope: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:175:73: error: ‘_device_pointer’ has not been declared UniformMassOpenCL3f1_addMDx(unsigned int /*size*/, float /*mass*/, _device_pointer /*res*/, const _device_pointer /*dx*/) {NOT_IMPLEMENTED();} ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:175:104: error: ‘_device_pointer’ does not name a type; did you mean ‘cl_device_info’? signed int /*size*/, float /*mass*/, _device_pointer /*res*/, const _device_pointer /*dx*/) {NOT_IMPLEMENTED();} ^~~~~~~~~~~~~~~ cl_device_info /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:176:75: error: ‘_device_pointer’ has not been declared niformMassOpenCL3f1_accFromF(unsigned int /*size*/, float /*mass*/, _device_pointer /*a*/, const _device_pointer /*f*/) {NOT_IMPLEMENTED();} ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:176:104: error: ‘_device_pointer’ does not name a type; did you mean ‘cl_device_info’? unsigned int /*size*/, float /*mass*/, _device_pointer /*a*/, const _device_pointer /*f*/) {NOT_IMPLEMENTED();} ^~~~~~~~~~~~~~~ cl_device_info /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:177:80: error: ‘_device_pointer’ has not been declared mMassOpenCL3f1_addForce(unsigned int /*size*/, const float* /*mg*/, _device_pointer /*f*/) {NOT_IMPLEMENTED();} ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:179:73: error: ‘_device_pointer’ has not been declared UniformMassOpenCL3d_addMDx(unsigned int /*size*/, double /*mass*/, _device_pointer /*res*/, const _device_pointer /*dx*/) {NOT_IMPLEMENTED();} ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:179:104: error: ‘_device_pointer’ does not name a type; did you mean ‘cl_device_info’? igned int /*size*/, double /*mass*/, _device_pointer /*res*/, const _device_pointer /*dx*/) {NOT_IMPLEMENTED();} ^~~~~~~~~~~~~~~ cl_device_info /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:180:75: error: ‘_device_pointer’ has not been declared niformMassOpenCL3d_accFromF(unsigned int /*size*/, double /*mass*/, _device_pointer /*a*/, const _device_pointer /*f*/) {NOT_IMPLEMENTED();} ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:180:104: error: ‘_device_pointer’ does not name a type; did you mean ‘cl_device_info’? nsigned int /*size*/, double /*mass*/, _device_pointer /*a*/, const _device_pointer /*f*/) {NOT_IMPLEMENTED();} ^~~~~~~~~~~~~~~ cl_device_info /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:181:80: error: ‘_device_pointer’ has not been declared mMassOpenCL3d_addForce(unsigned int /*size*/, const double* /*mg*/, _device_pointer /*f*/) {NOT_IMPLEMENTED();} ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:183:74: error: ‘_device_pointer’ has not been declared UniformMassOpenCL3d1_addMDx(unsigned int /*size*/, double /*mass*/, _device_pointer /*res*/, const _device_pointer /*dx*/) {NOT_IMPLEMENTED();} ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:183:105: error: ‘_device_pointer’ does not name a type; did you mean ‘cl_device_info’? igned int /*size*/, double /*mass*/, _device_pointer /*res*/, const _device_pointer /*dx*/) {NOT_IMPLEMENTED();} ^~~~~~~~~~~~~~~ cl_device_info /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:184:76: error: ‘_device_pointer’ has not been declared iformMassOpenCL3d1_accFromF(unsigned int /*size*/, double /*mass*/, _device_pointer /*a*/, const _device_pointer /*f*/) {NOT_IMPLEMENTED();} ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:184:105: error: ‘_device_pointer’ does not name a type; did you mean ‘cl_device_info’? nsigned int /*size*/, double /*mass*/, _device_pointer /*a*/, const _device_pointer /*f*/) {NOT_IMPLEMENTED();} ^~~~~~~~~~~~~~~ cl_device_info /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:185:81: error: ‘_device_pointer’ has not been declared MassOpenCL3d1_addForce(unsigned int /*size*/, const double* /*mg*/, _device_pointer /*f*/) {NOT_IMPLEMENTED();} ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:204:1: error: expected ‘}’ at end of input } // namespace sofa ^
Can you help me? There is a github version where all these problems are already fixed?
Thank you in advance
27 April 2020 at 21:12 #15960Hugo
KeymasterHey @pasquale94
Thank you for sharing this with us!
As you can notice, this OpenCL plugin has not been refreshed for a long time. And I am unfortunately not familiar with it.You did well notice the change of name in the Data (d_fixAll) to fit the guidelines. However, the name fd_mask looks strange to me..
The problem in OpenCLIdentityMapping.cpp is due to the PR #853. Avoiding to always compile in both double and float. You can see in other *.cpp how the instantiation works.
For your last errors, there actually plenty of different errors. It seems first to suggest the function buildProgram() for UniformMassOpenCLFloat_program instead of buildLog(0).
Messages are not sent anymore through the std but using our Messaging API.
Then, problems are more obscure to me since I am not familiar with OpenCL and the SOFA OpenCL plugin. But I am ready to help as much as I can, and I will see if I find some help in the community.Best wishes,
Hugo
28 April 2020 at 13:18 #15969Pasquale94
BlockedHi Hugo!
In the code OpenCLIdentityMapping.cpp there is no
#ifndef SOFA_Float
to remove, that’s why I just comment out the two lines.Now in the file OpenClUniformMass.cpp remains this errors, now seems that there are problems in the file Messaging.h, and still remains the error in the *.cpp file due to
_device_pointer
:/home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:143:30: note: in expansion of macro ‘MSGINFO_CHOOSE_FROM_ARG_COUNT’ #define MSGINFO_CHOOSER(...) MSGINFO_CHOOSE_FROM_ARG_COUNT(MSGINFO_NO_ARG_EXPANDER __VA_ARGS__ ()) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:143:60: note: in expansion of macro ‘MSGINFO_NO_ARG_EXPANDER’ #define MSGINFO_CHOOSER(...) MSGINFO_CHOOSE_FROM_ARG_COUNT(MSGINFO_NO_ARG_EXPANDER __VA_ARGS__ ()) ^~~~~~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:145:23: note: in expansion of macro ‘MSGINFO_CHOOSER’ #define msg_info(...) MSGINFO_CHOOSER(__VA_ARGS__)(__VA_ARGS__) ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:77:9: note: in expansion of macro ‘msg_info’ msg_info()<< UniformMassOpenCLFloat_program->buildProgram(); ^ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:139:58: error: invalid use of ‘this’ in non-member function #define MSGINFO_0() if( sofa::helper::logging::notMuted(this) ) oldmsg_info(this) ^ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:134:41: note: in expansion of macro ‘MSGINFO_0’ #define TWO_FUNC_CHOOSER(_f1, _f2 ,...) _f2 ^~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:135:50: note: in expansion of macro ‘TWO_FUNC_CHOOSER’ #define TWO_FUNC_RECOMPOSER(argsWithParentheses) TWO_FUNC_CHOOSER argsWithParentheses ^~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:141:44: note: in expansion of macro ‘TWO_FUNC_RECOMPOSER’ #define MSGINFO_CHOOSE_FROM_ARG_COUNT(...) TWO_FUNC_RECOMPOSER((__VA_ARGS__, MSGINFO_1, )) ^~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:143:30: note: in expansion of macro ‘MSGINFO_CHOOSE_FROM_ARG_COUNT’ #define MSGINFO_CHOOSER(...) MSGINFO_CHOOSE_FROM_ARG_COUNT(MSGINFO_NO_ARG_EXPANDER __VA_ARGS__ ()) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:143:60: note: in expansion of macro ‘MSGINFO_NO_ARG_EXPANDER’ #define MSGINFO_CHOOSER(...) MSGINFO_CHOOSE_FROM_ARG_COUNT(MSGINFO_NO_ARG_EXPANDER __VA_ARGS__ ()) ^~~~~~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:145:23: note: in expansion of macro ‘MSGINFO_CHOOSER’ #define msg_info(...) MSGINFO_CHOOSER(__VA_ARGS__)(__VA_ARGS__) ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:77:9: note: in expansion of macro ‘msg_info’ msg_info()<< UniformMassOpenCLFloat_program->buildProgram(); ^ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:110:42: error: ‘sofa::sofa::helper’ has not been declared #define oldmsg_info(emitter) sofa::helper::logging::MessageDispatcher::info(sofa::helper::logging::Message::Runtime, sofa::helper::logging::getComponentInfo(emitter), SOFA_FILE_INFO) ^ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:139:66: note: in expansion of macro ‘oldmsg_info’ #define MSGINFO_0() if( sofa::helper::logging::notMuted(this) ) oldmsg_info(this) ^~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:134:41: note: in expansion of macro ‘MSGINFO_0’ #define TWO_FUNC_CHOOSER(_f1, _f2 ,...) _f2 ^~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:135:50: note: in expansion of macro ‘TWO_FUNC_CHOOSER’ #define TWO_FUNC_RECOMPOSER(argsWithParentheses) TWO_FUNC_CHOOSER argsWithParentheses ^~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:141:44: note: in expansion of macro ‘TWO_FUNC_RECOMPOSER’ #define MSGINFO_CHOOSE_FROM_ARG_COUNT(...) TWO_FUNC_RECOMPOSER((__VA_ARGS__, MSGINFO_1, )) ^~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:143:30: note: in expansion of macro ‘MSGINFO_CHOOSE_FROM_ARG_COUNT’ #define MSGINFO_CHOOSER(...) MSGINFO_CHOOSE_FROM_ARG_COUNT(MSGINFO_NO_ARG_EXPANDER __VA_ARGS__ ()) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:143:60: note: in expansion of macro ‘MSGINFO_NO_ARG_EXPANDER’ #define MSGINFO_CHOOSER(...) MSGINFO_CHOOSE_FROM_ARG_COUNT(MSGINFO_NO_ARG_EXPANDER __VA_ARGS__ ()) ^~~~~~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:145:23: note: in expansion of macro ‘MSGINFO_CHOOSER’ #define msg_info(...) MSGINFO_CHOOSER(__VA_ARGS__)(__VA_ARGS__) ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:77:9: note: in expansion of macro ‘msg_info’ msg_info()<< UniformMassOpenCLFloat_program->buildProgram(); ^ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:110:89: error: ‘sofa::sofa::helper’ has not been declared #define oldmsg_info(emitter) sofa::helper::logging::MessageDispatcher::info(sofa::helper::logging::Message::Runtime, sofa::helper::logging::getComponentInfo(emitter), SOFA_FILE_INFO) ^ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:139:66: note: in expansion of macro ‘oldmsg_info’ #define MSGINFO_0() if( sofa::helper::logging::notMuted(this) ) oldmsg_info(this) ^~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:134:41: note: in expansion of macro ‘MSGINFO_0’ #define TWO_FUNC_CHOOSER(_f1, _f2 ,...) _f2 ^~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:135:50: note: in expansion of macro ‘TWO_FUNC_CHOOSER’ #define TWO_FUNC_RECOMPOSER(argsWithParentheses) TWO_FUNC_CHOOSER argsWithParentheses ^~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:141:44: note: in expansion of macro ‘TWO_FUNC_RECOMPOSER’ #define MSGINFO_CHOOSE_FROM_ARG_COUNT(...) TWO_FUNC_RECOMPOSER((__VA_ARGS__, MSGINFO_1, )) ^~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:143:30: note: in expansion of macro ‘MSGINFO_CHOOSE_FROM_ARG_COUNT’ #define MSGINFO_CHOOSER(...) MSGINFO_CHOOSE_FROM_ARG_COUNT(MSGINFO_NO_ARG_EXPANDER __VA_ARGS__ ()) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:143:60: note: in expansion of macro ‘MSGINFO_NO_ARG_EXPANDER’ #define MSGINFO_CHOOSER(...) MSGINFO_CHOOSE_FROM_ARG_COUNT(MSGINFO_NO_ARG_EXPANDER __VA_ARGS__ ()) ^~~~~~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:145:23: note: in expansion of macro ‘MSGINFO_CHOOSER’ #define msg_info(...) MSGINFO_CHOOSER(__VA_ARGS__)(__VA_ARGS__) ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:77:9: note: in expansion of macro ‘msg_info’ msg_info()<< UniformMassOpenCLFloat_program->buildProgram(); ^ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:110:130: error: ‘sofa::sofa::helper’ has not been declared #define oldmsg_info(emitter) sofa::helper::logging::MessageDispatcher::info(sofa::helper::logging::Message::Runtime, sofa::helper::logging::getComponentInfo(emitter), SOFA_FILE_INFO) ^ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:139:66: note: in expansion of macro ‘oldmsg_info’ #define MSGINFO_0() if( sofa::helper::logging::notMuted(this) ) oldmsg_info(this) ^~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:134:41: note: in expansion of macro ‘MSGINFO_0’ #define TWO_FUNC_CHOOSER(_f1, _f2 ,...) _f2 ^~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:135:50: note: in expansion of macro ‘TWO_FUNC_CHOOSER’ #define TWO_FUNC_RECOMPOSER(argsWithParentheses) TWO_FUNC_CHOOSER argsWithParentheses ^~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:141:44: note: in expansion of macro ‘TWO_FUNC_RECOMPOSER’ #define MSGINFO_CHOOSE_FROM_ARG_COUNT(...) TWO_FUNC_RECOMPOSER((__VA_ARGS__, MSGINFO_1, )) ^~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:143:30: note: in expansion of macro ‘MSGINFO_CHOOSE_FROM_ARG_COUNT’ #define MSGINFO_CHOOSER(...) MSGINFO_CHOOSE_FROM_ARG_COUNT(MSGINFO_NO_ARG_EXPANDER __VA_ARGS__ ()) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:143:60: note: in expansion of macro ‘MSGINFO_NO_ARG_EXPANDER’ #define MSGINFO_CHOOSER(...) MSGINFO_CHOOSE_FROM_ARG_COUNT(MSGINFO_NO_ARG_EXPANDER __VA_ARGS__ ()) ^~~~~~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:145:23: note: in expansion of macro ‘MSGINFO_CHOOSER’ #define msg_info(...) MSGINFO_CHOOSER(__VA_ARGS__)(__VA_ARGS__) ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:77:9: note: in expansion of macro ‘msg_info’ msg_info()<< UniformMassOpenCLFloat_program->buildProgram(); ^ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:139:78: error: invalid use of ‘this’ in non-member function #define MSGINFO_0() if( sofa::helper::logging::notMuted(this) ) oldmsg_info(this) ^ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:110:164: note: in definition of macro ‘oldmsg_info’ dmsg_info(emitter) sofa::helper::logging::MessageDispatcher::info(sofa::helper::logging::Message::Runtime, sofa::helper::logging::getComponentInfo(emitter), SOFA_FILE_INFO) ^~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:134:41: note: in expansion of macro ‘MSGINFO_0’ #define TWO_FUNC_CHOOSER(_f1, _f2 ,...) _f2 ^~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:135:50: note: in expansion of macro ‘TWO_FUNC_CHOOSER’ #define TWO_FUNC_RECOMPOSER(argsWithParentheses) TWO_FUNC_CHOOSER argsWithParentheses ^~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:141:44: note: in expansion of macro ‘TWO_FUNC_RECOMPOSER’ #define MSGINFO_CHOOSE_FROM_ARG_COUNT(...) TWO_FUNC_RECOMPOSER((__VA_ARGS__, MSGINFO_1, )) ^~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:143:30: note: in expansion of macro ‘MSGINFO_CHOOSE_FROM_ARG_COUNT’ #define MSGINFO_CHOOSER(...) MSGINFO_CHOOSE_FROM_ARG_COUNT(MSGINFO_NO_ARG_EXPANDER __VA_ARGS__ ()) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:143:60: note: in expansion of macro ‘MSGINFO_NO_ARG_EXPANDER’ #define MSGINFO_CHOOSER(...) MSGINFO_CHOOSE_FROM_ARG_COUNT(MSGINFO_NO_ARG_EXPANDER __VA_ARGS__ ()) ^~~~~~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:145:23: note: in expansion of macro ‘MSGINFO_CHOOSER’ #define msg_info(...) MSGINFO_CHOOSER(__VA_ARGS__)(__VA_ARGS__) ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:77:9: note: in expansion of macro ‘msg_info’ msg_info()<< UniformMassOpenCLFloat_program->buildProgram(); ^ In file included from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Message.h:38:0, from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/MessageDispatcher.h:30, from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:81, from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/vector.h:37, from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/../SofaDefaultType/src/sofa/defaulttype/DataTypeInfo.h:27, from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/../SofaDefaultType/src/sofa/defaulttype/Vec.h:27, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLTypes.h:26, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:22: /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/FileInfo.h:90:30: error: ‘sofa::sofa::helper’ has not been declared #define SOFA_FILE_INFO sofa::helper::logging::FileInfo::SPtr(new sofa::helper::logging::FileInfo(__FILE__, __LINE__)) ^ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:110:174: note: in expansion of macro ‘SOFA_FILE_INFO’ emitter) sofa::helper::logging::MessageDispatcher::info(sofa::helper::logging::Message::Runtime, sofa::helper::logging::getComponentInfo(emitter), SOFA_FILE_INFO) ^~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:139:66: note: in expansion of macro ‘oldmsg_info’ #define MSGINFO_0() if( sofa::helper::logging::notMuted(this) ) oldmsg_info(this) ^~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:134:41: note: in expansion of macro ‘MSGINFO_0’ #define TWO_FUNC_CHOOSER(_f1, _f2 ,...) _f2 ^~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:135:50: note: in expansion of macro ‘TWO_FUNC_CHOOSER’ #define TWO_FUNC_RECOMPOSER(argsWithParentheses) TWO_FUNC_CHOOSER argsWithParentheses ^~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:141:44: note: in expansion of macro ‘TWO_FUNC_RECOMPOSER’ #define MSGINFO_CHOOSE_FROM_ARG_COUNT(...) TWO_FUNC_RECOMPOSER((__VA_ARGS__, MSGINFO_1, )) ^~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:143:30: note: in expansion of macro ‘MSGINFO_CHOOSE_FROM_ARG_COUNT’ #define MSGINFO_CHOOSER(...) MSGINFO_CHOOSE_FROM_ARG_COUNT(MSGINFO_NO_ARG_EXPANDER __VA_ARGS__ ()) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:143:60: note: in expansion of macro ‘MSGINFO_NO_ARG_EXPANDER’ #define MSGINFO_CHOOSER(...) MSGINFO_CHOOSE_FROM_ARG_COUNT(MSGINFO_NO_ARG_EXPANDER __VA_ARGS__ ()) ^~~~~~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:145:23: note: in expansion of macro ‘MSGINFO_CHOOSER’ #define msg_info(...) MSGINFO_CHOOSER(__VA_ARGS__)(__VA_ARGS__) ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:77:9: note: in expansion of macro ‘msg_info’ msg_info()<< UniformMassOpenCLFloat_program->buildProgram(); ^ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/FileInfo.h:90:72: error: ‘helper’ in namespace ‘sofa::sofa’ does not name a type #define SOFA_FILE_INFO sofa::helper::logging::FileInfo::SPtr(new sofa::helper::logging::FileInfo(__FILE__, __LINE__)) ^ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:110:174: note: in expansion of macro ‘SOFA_FILE_INFO’ emitter) sofa::helper::logging::MessageDispatcher::info(sofa::helper::logging::Message::Runtime, sofa::helper::logging::getComponentInfo(emitter), SOFA_FILE_INFO) ^~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:139:66: note: in expansion of macro ‘oldmsg_info’ #define MSGINFO_0() if( sofa::helper::logging::notMuted(this) ) oldmsg_info(this) ^~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:134:41: note: in expansion of macro ‘MSGINFO_0’ #define TWO_FUNC_CHOOSER(_f1, _f2 ,...) _f2 ^~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:135:50: note: in expansion of macro ‘TWO_FUNC_CHOOSER’ #define TWO_FUNC_RECOMPOSER(argsWithParentheses) TWO_FUNC_CHOOSER argsWithParentheses ^~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:141:44: note: in expansion of macro ‘TWO_FUNC_RECOMPOSER’ #define MSGINFO_CHOOSE_FROM_ARG_COUNT(...) TWO_FUNC_RECOMPOSER((__VA_ARGS__, MSGINFO_1, )) ^~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:143:30: note: in expansion of macro ‘MSGINFO_CHOOSE_FROM_ARG_COUNT’ #define MSGINFO_CHOOSER(...) MSGINFO_CHOOSE_FROM_ARG_COUNT(MSGINFO_NO_ARG_EXPANDER __VA_ARGS__ ()) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:143:60: note: in expansion of macro ‘MSGINFO_NO_ARG_EXPANDER’ #define MSGINFO_CHOOSER(...) MSGINFO_CHOOSE_FROM_ARG_COUNT(MSGINFO_NO_ARG_EXPANDER __VA_ARGS__ ()) ^~~~~~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:145:23: note: in expansion of macro ‘MSGINFO_CHOOSER’ #define msg_info(...) MSGINFO_CHOOSER(__VA_ARGS__)(__VA_ARGS__) ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:77:9: note: in expansion of macro ‘msg_info’ msg_info()<< UniformMassOpenCLFloat_program->buildProgram(); ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp: At global scope: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:92:71: error: ‘_device_pointer’ has not been declared void UniformMassOpenCL3f_addForce(unsigned int size, const float* mg, _device_pointer f) ^~~~~~~~~~~~~~~ In file included from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLMemoryManager.h:26:0, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLTypes.h:32, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:22: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp: In function ‘void sofa::sofa::gpu::opencl::UniformMassOpenCL3f_addForce(unsigned int, const float*, int)’: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:36:31: error: request for member ‘offset’ in ‘f’, which is of non-class type ‘int’ #define ERROR_OFFSET(t) {if(t.offset!=0){printf("Error Offset %s %d: %s %d\n",__FILE__,__LINE__,#t,(int)t.offset);exit(-1);}} ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:95:5: note: in expansion of macro ‘ERROR_OFFSET’ ERROR_OFFSET(f); ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:36:107: error: request for member ‘offset’ in ‘f’, which is of non-class type ‘int’ #define ERROR_OFFSET(t) {if(t.offset!=0){printf("Error Offset %s %d: %s %d\n",__FILE__,__LINE__,#t,(int)t.offset);exit(-1);}} ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:95:5: note: in expansion of macro ‘ERROR_OFFSET’ ERROR_OFFSET(f); ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:97:30: error: ‘OpenCLMemoryManager’ is not a member of ‘sofa::sofa::gpu::opencl’ int BSIZE = gpu::opencl::OpenCLMemoryManager<float>::BSIZE; ^~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:97:30: note: suggested alternative: ‘OpenCLKernel’ int BSIZE = gpu::opencl::OpenCLMemoryManager<float>::BSIZE; ^~~~~~~~~~~~~~~~~~~ OpenCLKernel /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:97:50: error: expected primary-expression before ‘float’ int BSIZE = gpu::opencl::OpenCLMemoryManager<float>::BSIZE; ^~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:104:49: error: ‘_device_pointer’ was not declared in this scope UniformMassOpenCL3f_addForce_kernel->setArg<_device_pointer>(4,&f); ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:104:49: note: suggested alternatives: In file included from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLMemoryManager.h:26:0, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLTypes.h:32, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:22: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:66:7: note: ‘sofa::gpu::opencl::_device_pointer’ } _device_pointer; ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:66:7: note: ‘sofa::gpu::opencl::_device_pointer’ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:104:70: error: no matching function for call to ‘sofa::sofa::gpu::opencl::OpenCLKernel::setArg<<expression error> >(int, int*)’ UniformMassOpenCL3f_addForce_kernel->setArg<_device_pointer>(4,&f); ^ In file included from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:28:0: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLKernel.h:54:10: note: candidate: template<class T> void sofa::sofa::gpu::opencl::OpenCLKernel::setArg(int, const T*) void setArg(int numArg,const T* arg) ^~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLKernel.h:54:10: note: template argument deduction/substitution failed: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:104:70: error: template argument 1 is invalid UniformMassOpenCL3f_addForce_kernel->setArg<_device_pointer>(4,&f); ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp: At global scope: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:117:64: error: ‘_device_pointer’ has not been declared void UniformMassOpenCL3f_addMDx(unsigned int size, float mass, _device_pointer res, const _device_pointer dx) ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:117:91: error: ‘_device_pointer’ does not name a type; did you mean ‘cl_device_info’? void UniformMassOpenCL3f_addMDx(unsigned int size, float mass, _device_pointer res, const _device_pointer dx) ^~~~~~~~~~~~~~~ cl_device_info In file included from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLMemoryManager.h:26:0, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLTypes.h:32, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:22: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp: In function ‘void sofa::sofa::gpu::opencl::UniformMassOpenCL3f_addMDx(unsigned int, float, int, int)’: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:36:31: error: request for member ‘offset’ in ‘res’, which is of non-class type ‘int’ #define ERROR_OFFSET(t) {if(t.offset!=0){printf("Error Offset %s %d: %s %d\n",__FILE__,__LINE__,#t,(int)t.offset);exit(-1);}} ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:120:5: note: in expansion of macro ‘ERROR_OFFSET’ ERROR_OFFSET(res) ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:36:107: error: request for member ‘offset’ in ‘res’, which is of non-class type ‘int’ #define ERROR_OFFSET(t) {if(t.offset!=0){printf("Error Offset %s %d: %s %d\n",__FILE__,__LINE__,#t,(int)t.offset);exit(-1);}} ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:120:5: note: in expansion of macro ‘ERROR_OFFSET’ ERROR_OFFSET(res) ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:36:31: error: request for member ‘offset’ in ‘dx’, which is of non-class type ‘const int’ #define ERROR_OFFSET(t) {if(t.offset!=0){printf("Error Offset %s %d: %s %d\n",__FILE__,__LINE__,#t,(int)t.offset);exit(-1);}} ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:121:5: note: in expansion of macro ‘ERROR_OFFSET’ ERROR_OFFSET(dx) ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:36:107: error: request for member ‘offset’ in ‘dx’, which is of non-class type ‘const int’ #define ERROR_OFFSET(t) {if(t.offset!=0){printf("Error Offset %s %d: %s %d\n",__FILE__,__LINE__,#t,(int)t.offset);exit(-1);}} ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:121:5: note: in expansion of macro ‘ERROR_OFFSET’ ERROR_OFFSET(dx) ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:124:30: error: ‘OpenCLMemoryManager’ is not a member of ‘sofa::sofa::gpu::opencl’ int BSIZE = gpu::opencl::OpenCLMemoryManager<float>::BSIZE; ^~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:124:30: note: suggested alternative: ‘OpenCLKernel’ int BSIZE = gpu::opencl::OpenCLMemoryManager<float>::BSIZE; ^~~~~~~~~~~~~~~~~~~ OpenCLKernel /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:124:50: error: expected primary-expression before ‘float’ int BSIZE = gpu::opencl::OpenCLMemoryManager<float>::BSIZE; ^~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:130:47: error: ‘_device_pointer’ was not declared in this scope UniformMassOpenCL3f_addMDX_kernel->setArg<_device_pointer>(1,&res); ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:130:47: note: suggested alternatives: In file included from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLMemoryManager.h:26:0, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLTypes.h:32, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:22: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:66:7: note: ‘sofa::gpu::opencl::_device_pointer’ } _device_pointer; ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:66:7: note: ‘sofa::gpu::opencl::_device_pointer’ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:130:70: error: no matching function for call to ‘sofa::sofa::gpu::opencl::OpenCLKernel::setArg<<expression error> >(int, int*)’ UniformMassOpenCL3f_addMDX_kernel->setArg<_device_pointer>(1,&res); ^ In file included from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:28:0: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLKernel.h:54:10: note: candidate: template<class T> void sofa::sofa::gpu::opencl::OpenCLKernel::setArg(int, const T*) void setArg(int numArg,const T* arg) ^~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLKernel.h:54:10: note: template argument deduction/substitution failed: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:130:70: error: template argument 1 is invalid UniformMassOpenCL3f_addMDX_kernel->setArg<_device_pointer>(1,&res); ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:131:69: error: no matching function for call to ‘sofa::sofa::gpu::opencl::OpenCLKernel::setArg<_device_pointer>(int, const int*)’ UniformMassOpenCL3f_addMDX_kernel->setArg<_device_pointer>(2,&dx); ^ In file included from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:28:0: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLKernel.h:54:10: note: candidate: template<class T> void sofa::sofa::gpu::opencl::OpenCLKernel::setArg(int, const T*) void setArg(int numArg,const T* arg) ^~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLKernel.h:54:10: note: template argument deduction/substitution failed: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp: At global scope: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:143:66: error: ‘_device_pointer’ has not been declared void UniformMassOpenCL3f_accFromF(unsigned int size, float mass, _device_pointer a, const _device_pointer f) ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:143:91: error: ‘_device_pointer’ does not name a type; did you mean ‘cl_device_info’? void UniformMassOpenCL3f_accFromF(unsigned int size, float mass, _device_pointer a, const _device_pointer f) ^~~~~~~~~~~~~~~ cl_device_info In file included from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLMemoryManager.h:26:0, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLTypes.h:32, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:22: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp: In function ‘void sofa::sofa::gpu::opencl::UniformMassOpenCL3f_accFromF(unsigned int, float, int, int)’: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:36:31: error: request for member ‘offset’ in ‘a’, which is of non-class type ‘int’ #define ERROR_OFFSET(t) {if(t.offset!=0){printf("Error Offset %s %d: %s %d\n",__FILE__,__LINE__,#t,(int)t.offset);exit(-1);}} ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:147:5: note: in expansion of macro ‘ERROR_OFFSET’ ERROR_OFFSET(a) ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:36:107: error: request for member ‘offset’ in ‘a’, which is of non-class type ‘int’ #define ERROR_OFFSET(t) {if(t.offset!=0){printf("Error Offset %s %d: %s %d\n",__FILE__,__LINE__,#t,(int)t.offset);exit(-1);}} ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:147:5: note: in expansion of macro ‘ERROR_OFFSET’ ERROR_OFFSET(a) ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:36:31: error: request for member ‘offset’ in ‘f’, which is of non-class type ‘const int’ #define ERROR_OFFSET(t) {if(t.offset!=0){printf("Error Offset %s %d: %s %d\n",__FILE__,__LINE__,#t,(int)t.offset);exit(-1);}} ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:148:5: note: in expansion of macro ‘ERROR_OFFSET’ ERROR_OFFSET(f) ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:36:107: error: request for member ‘offset’ in ‘f’, which is of non-class type ‘const int’ #define ERROR_OFFSET(t) {if(t.offset!=0){printf("Error Offset %s %d: %s %d\n",__FILE__,__LINE__,#t,(int)t.offset);exit(-1);}} ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:148:5: note: in expansion of macro ‘ERROR_OFFSET’ ERROR_OFFSET(f) ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:152:30: error: ‘OpenCLMemoryManager’ is not a member of ‘sofa::sofa::gpu::opencl’ int BSIZE = gpu::opencl::OpenCLMemoryManager<float>::BSIZE; ^~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:152:30: note: suggested alternative: ‘OpenCLKernel’ int BSIZE = gpu::opencl::OpenCLMemoryManager<float>::BSIZE; ^~~~~~~~~~~~~~~~~~~ OpenCLKernel /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:152:50: error: expected primary-expression before ‘float’ int BSIZE = gpu::opencl::OpenCLMemoryManager<float>::BSIZE; ^~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:158:49: error: ‘_device_pointer’ was not declared in this scope UniformMassOpenCL3f_accFromF_kernel->setArg<_device_pointer>(1,&a); ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:158:49: note: suggested alternatives: In file included from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLMemoryManager.h:26:0, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLTypes.h:32, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:22: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:66:7: note: ‘sofa::gpu::opencl::_device_pointer’ } _device_pointer; ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:66:7: note: ‘sofa::gpu::opencl::_device_pointer’ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:158:70: error: no matching function for call to ‘sofa::sofa::gpu::opencl::OpenCLKernel::setArg<<expression error> >(int, int*)’ UniformMassOpenCL3f_accFromF_kernel->setArg<_device_pointer>(1,&a); ^ In file included from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:28:0: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLKernel.h:54:10: note: candidate: template<class T> void sofa::sofa::gpu::opencl::OpenCLKernel::setArg(int, const T*) void setArg(int numArg,const T* arg) ^~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLKernel.h:54:10: note: template argument deduction/substitution failed: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:158:70: error: template argument 1 is invalid UniformMassOpenCL3f_accFromF_kernel->setArg<_device_pointer>(1,&a); ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:159:70: error: no matching function for call to ‘sofa::sofa::gpu::opencl::OpenCLKernel::setArg<_device_pointer>(int, const int*)’ UniformMassOpenCL3f_accFromF_kernel->setArg<_device_pointer>(2,&f); ^ In file included from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:28:0: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLKernel.h:54:10: note: candidate: template<class T> void sofa::sofa::gpu::opencl::OpenCLKernel::setArg(int, const T*) void setArg(int numArg,const T* arg) ^~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLKernel.h:54:10: note: template argument deduction/substitution failed: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp: At global scope: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:175:73: error: ‘_device_pointer’ has not been declared void UniformMassOpenCL3f1_addMDx(unsigned int /*size*/, float /*mass*/, _device_pointer /*res*/, const _device_pointer /*dx*/) {NOT_IMPLEMENTED();} ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:175:104: error: ‘_device_pointer’ does not name a type; did you mean ‘cl_device_info’? void UniformMassOpenCL3f1_addMDx(unsigned int /*size*/, float /*mass*/, _device_pointer /*res*/, const _device_pointer /*dx*/) {NOT_IMPLEMENTED();} ^~~~~~~~~~~~~~~ cl_device_info /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:176:75: error: ‘_device_pointer’ has not been declared void UniformMassOpenCL3f1_accFromF(unsigned int /*size*/, float /*mass*/, _device_pointer /*a*/, const _device_pointer /*f*/) {NOT_IMPLEMENTED();} ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:176:104: error: ‘_device_pointer’ does not name a type; did you mean ‘cl_device_info’? void UniformMassOpenCL3f1_accFromF(unsigned int /*size*/, float /*mass*/, _device_pointer /*a*/, const _device_pointer /*f*/) {NOT_IMPLEMENTED();} ^~~~~~~~~~~~~~~ cl_device_info /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:177:80: error: ‘_device_pointer’ has not been declared void UniformMassOpenCL3f1_addForce(unsigned int /*size*/, const float* /*mg*/, _device_pointer /*f*/) {NOT_IMPLEMENTED();} ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:179:73: error: ‘_device_pointer’ has not been declared void UniformMassOpenCL3d_addMDx(unsigned int /*size*/, double /*mass*/, _device_pointer /*res*/, const _device_pointer /*dx*/) {NOT_IMPLEMENTED();} ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:179:104: error: ‘_device_pointer’ does not name a type; did you mean ‘cl_device_info’? void UniformMassOpenCL3d_addMDx(unsigned int /*size*/, double /*mass*/, _device_pointer /*res*/, const _device_pointer /*dx*/) {NOT_IMPLEMENTED();} ^~~~~~~~~~~~~~~ cl_device_info /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:180:75: error: ‘_device_pointer’ has not been declared void UniformMassOpenCL3d_accFromF(unsigned int /*size*/, double /*mass*/, _device_pointer /*a*/, const _device_pointer /*f*/) {NOT_IMPLEMENTED();} ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:180:104: error: ‘_device_pointer’ does not name a type; did you mean ‘cl_device_info’? void UniformMassOpenCL3d_accFromF(unsigned int /*size*/, double /*mass*/, _device_pointer /*a*/, const _device_pointer /*f*/) {NOT_IMPLEMENTED();} ^~~~~~~~~~~~~~~ cl_device_info /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:181:80: error: ‘_device_pointer’ has not been declared void UniformMassOpenCL3d_addForce(unsigned int /*size*/, const double* /*mg*/, _device_pointer /*f*/) {NOT_IMPLEMENTED();} ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:183:74: error: ‘_device_pointer’ has not been declared void UniformMassOpenCL3d1_addMDx(unsigned int /*size*/, double /*mass*/, _device_pointer /*res*/, const _device_pointer /*dx*/) {NOT_IMPLEMENTED();} ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:183:105: error: ‘_device_pointer’ does not name a type; did you mean ‘cl_device_info’? void UniformMassOpenCL3d1_addMDx(unsigned int /*size*/, double /*mass*/, _device_pointer /*res*/, const _device_pointer /*dx*/) {NOT_IMPLEMENTED();} ^~~~~~~~~~~~~~~ cl_device_info /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:184:76: error: ‘_device_pointer’ has not been declared void UniformMassOpenCL3d1_accFromF(unsigned int /*size*/, double /*mass*/, _device_pointer /*a*/, const _device_pointer /*f*/) {NOT_IMPLEMENTED();} ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:184:105: error: ‘_device_pointer’ does not name a type; did you mean ‘cl_device_info’? void UniformMassOpenCL3d1_accFromF(unsigned int /*size*/, double /*mass*/, _device_pointer /*a*/, const _device_pointer /*f*/) {NOT_IMPLEMENTED();} ^~~~~~~~~~~~~~~ cl_device_info /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:185:81: error: ‘_device_pointer’ has not been declared void UniformMassOpenCL3d1_addForce(unsigned int /*size*/, const double* /*mg*/, _device_pointer /*f*/) {NOT_IMPLEMENTED();} ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:204:1: error: expected ‘}’ at end of input } // namespace sofa ^
`
29 April 2020 at 12:40 #15974Pasquale94
BlockedHi @Hugo
Today I worked a little bit on the code OpenClUniformMass.cpp, I resolved some errors, but i still have these ones.
from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:22: /usr/include/c++/7/bits/stringfwd.h:74:33: note: ‘std::__cxx11::string’ typedef basic_string<char> string; ^~~~~~ /usr/include/c++/7/bits/stringfwd.h:74:33: note: ‘std::__cxx11::string’ In file included from /usr/include/boost/container/allocator_traits.hpp:31:0, from /usr/include/boost/container/stable_vector.hpp:34, from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/stable_vector.h:26, from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/../SofaCore/src/sofa/core/objectmodel/Link.h:26, from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/../SofaCore/src/sofa/core/objectmodel/DDGNode.h:26, from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/../SofaCore/src/sofa/core/objectmodel/BaseData.h:26, from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/../SofaCore/src/sofa/core/objectmodel/Data.h:26, from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/../SofaCore/src/sofa/core/objectmodel/Base.h:27, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLTypes.h:29, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:22: /usr/include/boost/container/container_fwd.hpp:195:1: note: ‘boost::container::string’ string; ^~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:68:37: error: ‘string’ is not a member of ‘sofa::std’ std::swap<std::string, std::string> types; ^~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:68:37: note: suggested alternatives: In file included from /usr/include/c++/7/string:39:0, from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/system/gl.h:29, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLTypes.h:25, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:22: /usr/include/c++/7/bits/stringfwd.h:74:33: note: ‘std::__cxx11::string’ typedef basic_string<char> string; ^~~~~~ /usr/include/c++/7/bits/stringfwd.h:74:33: note: ‘std::__cxx11::string’ In file included from /usr/include/boost/container/allocator_traits.hpp:31:0, from /usr/include/boost/container/stable_vector.hpp:34, from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/stable_vector.h:26, from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/../SofaCore/src/sofa/core/objectmodel/Link.h:26, from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/../SofaCore/src/sofa/core/objectmodel/DDGNode.h:26, from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/../SofaCore/src/sofa/core/objectmodel/BaseData.h:26, from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/../SofaCore/src/sofa/core/objectmodel/Data.h:26, from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/../SofaCore/src/sofa/core/objectmodel/Base.h:27, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLTypes.h:29, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:22: /usr/include/boost/container/container_fwd.hpp:195:1: note: ‘boost::container::string’ string; ^~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:68:37: error: ‘string’ is not a member of ‘sofa::std’ std::swap<std::string, std::string> types; ^~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:68:37: note: suggested alternatives: In file included from /usr/include/c++/7/string:39:0, from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/system/gl.h:29, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLTypes.h:25, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:22: /usr/include/c++/7/bits/stringfwd.h:74:33: note: ‘std::__cxx11::string’ typedef basic_string<char> string; ^~~~~~ /usr/include/c++/7/bits/stringfwd.h:74:33: note: ‘std::__cxx11::string’ In file included from /usr/include/boost/container/allocator_traits.hpp:31:0, from /usr/include/boost/container/stable_vector.hpp:34, from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/stable_vector.h:26, from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/../SofaCore/src/sofa/core/objectmodel/Link.h:26, from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/../SofaCore/src/sofa/core/objectmodel/DDGNode.h:26, from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/../SofaCore/src/sofa/core/objectmodel/BaseData.h:26, from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/../SofaCore/src/sofa/core/objectmodel/Data.h:26, from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/../SofaCore/src/sofa/core/objectmodel/Base.h:27, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLTypes.h:29, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:22: /usr/include/boost/container/container_fwd.hpp:195:1: note: ‘boost::container::string’ string; ^~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:68:45: error: expected ‘;’ before ‘types’ std::swap<std::string, std::string> types; ^~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:68:9: error: statement cannot resolve address of overloaded function std::swap<std::string, std::string> types; ^~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:69:9: error: ‘types’ was not declared in this scope types["Real"]="float"; ^~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:69:9: note: suggested alternative: In file included from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/../SofaDefaultType/src/sofa/defaulttype/DataTypeInfo.h:29:0, from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/../SofaDefaultType/src/sofa/defaulttype/Vec.h:27, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLTypes.h:26, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:22: /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/types/RGBAColor.h:37:11: note: ‘sofa::helper::types’ namespace types ^~~~~ In file included from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLMemoryManager.h:31:0, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLTypes.h:32, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:22: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLCommon.h:29:26: error: ‘string’ is not a member of ‘sofa::std’ #define stringBSIZE std::string("#define BSIZE 32\n") ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:73:56: note: in expansion of macro ‘stringBSIZE’ = new OpenCLProgram("OpenCLUniformMass.cl",stringBSIZE,&types); ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLCommon.h:29:26: note: suggested alternatives: #define stringBSIZE std::string("#define BSIZE 32\n") ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:73:56: note: in expansion of macro ‘stringBSIZE’ = new OpenCLProgram("OpenCLUniformMass.cl",stringBSIZE,&types); ^ In file included from /usr/include/c++/7/string:39:0, from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/system/gl.h:29, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLTypes.h:25, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:22: /usr/include/c++/7/bits/stringfwd.h:74:33: note: ‘std::__cxx11::string’ typedef basic_string<char> string; ^~~~~~ /usr/include/c++/7/bits/stringfwd.h:74:33: note: ‘std::__cxx11::string’ In file included from /usr/include/boost/container/allocator_traits.hpp:31:0, from /usr/include/boost/container/stable_vector.hpp:34, from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/stable_vector.h:26, from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/../SofaCore/src/sofa/core/objectmodel/Link.h:26, from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/../SofaCore/src/sofa/core/objectmodel/DDGNode.h:26, from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/../SofaCore/src/sofa/core/objectmodel/BaseData.h:26, from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/../SofaCore/src/sofa/core/objectmodel/Data.h:26, from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/../SofaCore/src/sofa/core/objectmodel/Base.h:27, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLTypes.h:29, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:22: /usr/include/boost/container/container_fwd.hpp:195:1: note: ‘boost::container::string’ string; ^~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:76:28: error: ‘myopenclShowError’ is not a member of ‘sofa::sofa::gpu::opencl’ sofa::gpu::opencl::myopenclShowError(__FILE__,__LINE__); ^~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:76:28: note: suggested alternatives: In file included from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLMemoryManager.h:26:0, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLTypes.h:32, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:22: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:90:32: note: ‘sofa::gpu::opencl::myopenclShowError’ SOFAOPENCL_API extern void myopenclShowError(std::string file, int line); ^~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:90:32: note: ‘sofa::gpu::opencl::myopenclShowError’ In file included from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/vector.h:37:0, from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/../SofaDefaultType/src/sofa/defaulttype/DataTypeInfo.h:27, from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/../SofaDefaultType/src/sofa/defaulttype/Vec.h:27, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLTypes.h:26, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:22: /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:139:32: error: ‘sofa::sofa::helper’ has not been declared #define MSGINFO_0() if( sofa::helper::logging::notMuted(this) ) oldmsg_info(this) ^ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:134:41: note: in expansion of macro ‘MSGINFO_0’ #define TWO_FUNC_CHOOSER(_f1, _f2 ,...) _f2 ^~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:135:50: note: in expansion of macro ‘TWO_FUNC_CHOOSER’ #define TWO_FUNC_RECOMPOSER(argsWithParentheses) TWO_FUNC_CHOOSER argsWithParentheses ^~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:141:44: note: in expansion of macro ‘TWO_FUNC_RECOMPOSER’ #define MSGINFO_CHOOSE_FROM_ARG_COUNT(...) TWO_FUNC_RECOMPOSER((__VA_ARGS__, MSGINFO_1, )) ^~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:143:30: note: in expansion of macro ‘MSGINFO_CHOOSE_FROM_ARG_COUNT’ #define MSGINFO_CHOOSER(...) MSGINFO_CHOOSE_FROM_ARG_COUNT(MSGINFO_NO_ARG_EXPANDER __VA_ARGS__ ()) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:143:60: note: in expansion of macro ‘MSGINFO_NO_ARG_EXPANDER’ #define MSGINFO_CHOOSER(...) MSGINFO_CHOOSE_FROM_ARG_COUNT(MSGINFO_NO_ARG_EXPANDER __VA_ARGS__ ()) ^~~~~~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:145:23: note: in expansion of macro ‘MSGINFO_CHOOSER’ #define msg_info(...) MSGINFO_CHOOSER(__VA_ARGS__)(__VA_ARGS__) ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:77:9: note: in expansion of macro ‘msg_info’ msg_info()<< UniformMassOpenCLFloat_program->buildProgram(); ^ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:139:58: error: invalid use of ‘this’ in non-member function #define MSGINFO_0() if( sofa::helper::logging::notMuted(this) ) oldmsg_info(this) ^ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:134:41: note: in expansion of macro ‘MSGINFO_0’ #define TWO_FUNC_CHOOSER(_f1, _f2 ,...) _f2 ^~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:135:50: note: in expansion of macro ‘TWO_FUNC_CHOOSER’ #define TWO_FUNC_RECOMPOSER(argsWithParentheses) TWO_FUNC_CHOOSER argsWithParentheses ^~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:141:44: note: in expansion of macro ‘TWO_FUNC_RECOMPOSER’ #define MSGINFO_CHOOSE_FROM_ARG_COUNT(...) TWO_FUNC_RECOMPOSER((__VA_ARGS__, MSGINFO_1, )) ^~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:143:30: note: in expansion of macro ‘MSGINFO_CHOOSE_FROM_ARG_COUNT’ #define MSGINFO_CHOOSER(...) MSGINFO_CHOOSE_FROM_ARG_COUNT(MSGINFO_NO_ARG_EXPANDER __VA_ARGS__ ()) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:143:60: note: in expansion of macro ‘MSGINFO_NO_ARG_EXPANDER’ #define MSGINFO_CHOOSER(...) MSGINFO_CHOOSE_FROM_ARG_COUNT(MSGINFO_NO_ARG_EXPANDER __VA_ARGS__ ()) ^~~~~~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:145:23: note: in expansion of macro ‘MSGINFO_CHOOSER’ #define msg_info(...) MSGINFO_CHOOSER(__VA_ARGS__)(__VA_ARGS__) ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:77:9: note: in expansion of macro ‘msg_info’ msg_info()<< UniformMassOpenCLFloat_program->buildProgram(); ^ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:110:42: error: ‘sofa::sofa::helper’ has not been declared #define oldmsg_info(emitter) sofa::helper::logging::MessageDispatcher::info(sofa::helper::logging::Message::Runtime, sofa::helper::logging::getComponentInfo(emitter), SOFA_FILE_INFO) ^ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:139:66: note: in expansion of macro ‘oldmsg_info’ #define MSGINFO_0() if( sofa::helper::logging::notMuted(this) ) oldmsg_info(this) ^~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:134:41: note: in expansion of macro ‘MSGINFO_0’ #define TWO_FUNC_CHOOSER(_f1, _f2 ,...) _f2 ^~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:135:50: note: in expansion of macro ‘TWO_FUNC_CHOOSER’ #define TWO_FUNC_RECOMPOSER(argsWithParentheses) TWO_FUNC_CHOOSER argsWithParentheses ^~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:141:44: note: in expansion of macro ‘TWO_FUNC_RECOMPOSER’ #define MSGINFO_CHOOSE_FROM_ARG_COUNT(...) TWO_FUNC_RECOMPOSER((__VA_ARGS__, MSGINFO_1, )) ^~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:143:30: note: in expansion of macro ‘MSGINFO_CHOOSE_FROM_ARG_COUNT’ #define MSGINFO_CHOOSER(...) MSGINFO_CHOOSE_FROM_ARG_COUNT(MSGINFO_NO_ARG_EXPANDER __VA_ARGS__ ()) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:143:60: note: in expansion of macro ‘MSGINFO_NO_ARG_EXPANDER’ #define MSGINFO_CHOOSER(...) MSGINFO_CHOOSE_FROM_ARG_COUNT(MSGINFO_NO_ARG_EXPANDER __VA_ARGS__ ()) ^~~~~~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:145:23: note: in expansion of macro ‘MSGINFO_CHOOSER’ #define msg_info(...) MSGINFO_CHOOSER(__VA_ARGS__)(__VA_ARGS__) ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:77:9: note: in expansion of macro ‘msg_info’ msg_info()<< UniformMassOpenCLFloat_program->buildProgram(); ^ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:110:89: error: ‘sofa::sofa::helper’ has not been declared #define oldmsg_info(emitter) sofa::helper::logging::MessageDispatcher::info(sofa::helper::logging::Message::Runtime, sofa::helper::logging::getComponentInfo(emitter), SOFA_FILE_INFO) ^ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:139:66: note: in expansion of macro ‘oldmsg_info’ #define MSGINFO_0() if( sofa::helper::logging::notMuted(this) ) oldmsg_info(this) ^~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:134:41: note: in expansion of macro ‘MSGINFO_0’ #define TWO_FUNC_CHOOSER(_f1, _f2 ,...) _f2 ^~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:135:50: note: in expansion of macro ‘TWO_FUNC_CHOOSER’ #define TWO_FUNC_RECOMPOSER(argsWithParentheses) TWO_FUNC_CHOOSER argsWithParentheses ^~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:141:44: note: in expansion of macro ‘TWO_FUNC_RECOMPOSER’ #define MSGINFO_CHOOSE_FROM_ARG_COUNT(...) TWO_FUNC_RECOMPOSER((__VA_ARGS__, MSGINFO_1, )) ^~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:143:30: note: in expansion of macro ‘MSGINFO_CHOOSE_FROM_ARG_COUNT’ #define MSGINFO_CHOOSER(...) MSGINFO_CHOOSE_FROM_ARG_COUNT(MSGINFO_NO_ARG_EXPANDER __VA_ARGS__ ()) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:143:60: note: in expansion of macro ‘MSGINFO_NO_ARG_EXPANDER’ #define MSGINFO_CHOOSER(...) MSGINFO_CHOOSE_FROM_ARG_COUNT(MSGINFO_NO_ARG_EXPANDER __VA_ARGS__ ()) ^~~~~~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:145:23: note: in expansion of macro ‘MSGINFO_CHOOSER’ #define msg_info(...) MSGINFO_CHOOSER(__VA_ARGS__)(__VA_ARGS__) ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:77:9: note: in expansion of macro ‘msg_info’ msg_info()<< UniformMassOpenCLFloat_program->buildProgram(); ^ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:110:130: error: ‘sofa::sofa::helper’ has not been declared #define oldmsg_info(emitter) sofa::helper::logging::MessageDispatcher::info(sofa::helper::logging::Message::Runtime, sofa::helper::logging::getComponentInfo(emitter), SOFA_FILE_INFO) ^ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:139:66: note: in expansion of macro ‘oldmsg_info’ #define MSGINFO_0() if( sofa::helper::logging::notMuted(this) ) oldmsg_info(this) ^~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:134:41: note: in expansion of macro ‘MSGINFO_0’ #define TWO_FUNC_CHOOSER(_f1, _f2 ,...) _f2 ^~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:135:50: note: in expansion of macro ‘TWO_FUNC_CHOOSER’ #define TWO_FUNC_RECOMPOSER(argsWithParentheses) TWO_FUNC_CHOOSER argsWithParentheses ^~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:141:44: note: in expansion of macro ‘TWO_FUNC_RECOMPOSER’ #define MSGINFO_CHOOSE_FROM_ARG_COUNT(...) TWO_FUNC_RECOMPOSER((__VA_ARGS__, MSGINFO_1, )) ^~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:143:30: note: in expansion of macro ‘MSGINFO_CHOOSE_FROM_ARG_COUNT’ #define MSGINFO_CHOOSER(...) MSGINFO_CHOOSE_FROM_ARG_COUNT(MSGINFO_NO_ARG_EXPANDER __VA_ARGS__ ()) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:143:60: note: in expansion of macro ‘MSGINFO_NO_ARG_EXPANDER’ #define MSGINFO_CHOOSER(...) MSGINFO_CHOOSE_FROM_ARG_COUNT(MSGINFO_NO_ARG_EXPANDER __VA_ARGS__ ()) ^~~~~~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:145:23: note: in expansion of macro ‘MSGINFO_CHOOSER’ #define msg_info(...) MSGINFO_CHOOSER(__VA_ARGS__)(__VA_ARGS__) ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:77:9: note: in expansion of macro ‘msg_info’ msg_info()<< UniformMassOpenCLFloat_program->buildProgram(); ^ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:139:78: error: invalid use of ‘this’ in non-member function #define MSGINFO_0() if( sofa::helper::logging::notMuted(this) ) oldmsg_info(this) ^ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:110:164: note: in definition of macro ‘oldmsg_info’ dmsg_info(emitter) sofa::helper::logging::MessageDispatcher::info(sofa::helper::logging::Message::Runtime, sofa::helper::logging::getComponentInfo(emitter), SOFA_FILE_INFO) ^~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:134:41: note: in expansion of macro ‘MSGINFO_0’ #define TWO_FUNC_CHOOSER(_f1, _f2 ,...) _f2 ^~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:135:50: note: in expansion of macro ‘TWO_FUNC_CHOOSER’ #define TWO_FUNC_RECOMPOSER(argsWithParentheses) TWO_FUNC_CHOOSER argsWithParentheses ^~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:141:44: note: in expansion of macro ‘TWO_FUNC_RECOMPOSER’ #define MSGINFO_CHOOSE_FROM_ARG_COUNT(...) TWO_FUNC_RECOMPOSER((__VA_ARGS__, MSGINFO_1, )) ^~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:143:30: note: in expansion of macro ‘MSGINFO_CHOOSE_FROM_ARG_COUNT’ #define MSGINFO_CHOOSER(...) MSGINFO_CHOOSE_FROM_ARG_COUNT(MSGINFO_NO_ARG_EXPANDER __VA_ARGS__ ()) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:143:60: note: in expansion of macro ‘MSGINFO_NO_ARG_EXPANDER’ #define MSGINFO_CHOOSER(...) MSGINFO_CHOOSE_FROM_ARG_COUNT(MSGINFO_NO_ARG_EXPANDER __VA_ARGS__ ()) ^~~~~~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:145:23: note: in expansion of macro ‘MSGINFO_CHOOSER’ #define msg_info(...) MSGINFO_CHOOSER(__VA_ARGS__)(__VA_ARGS__) ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:77:9: note: in expansion of macro ‘msg_info’ msg_info()<< UniformMassOpenCLFloat_program->buildProgram(); ^ In file included from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Message.h:38:0, from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/MessageDispatcher.h:30, from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:81, from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/vector.h:37, from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/../SofaDefaultType/src/sofa/defaulttype/DataTypeInfo.h:27, from /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/../SofaDefaultType/src/sofa/defaulttype/Vec.h:27, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLTypes.h:26, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:22: /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/FileInfo.h:90:30: error: ‘sofa::sofa::helper’ has not been declared #define SOFA_FILE_INFO sofa::helper::logging::FileInfo::SPtr(new sofa::helper::logging::FileInfo(__FILE__, __LINE__)) ^ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:110:174: note: in expansion of macro ‘SOFA_FILE_INFO’ emitter) sofa::helper::logging::MessageDispatcher::info(sofa::helper::logging::Message::Runtime, sofa::helper::logging::getComponentInfo(emitter), SOFA_FILE_INFO) ^~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:139:66: note: in expansion of macro ‘oldmsg_info’ #define MSGINFO_0() if( sofa::helper::logging::notMuted(this) ) oldmsg_info(this) ^~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:134:41: note: in expansion of macro ‘MSGINFO_0’ #define TWO_FUNC_CHOOSER(_f1, _f2 ,...) _f2 ^~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:135:50: note: in expansion of macro ‘TWO_FUNC_CHOOSER’ #define TWO_FUNC_RECOMPOSER(argsWithParentheses) TWO_FUNC_CHOOSER argsWithParentheses ^~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:141:44: note: in expansion of macro ‘TWO_FUNC_RECOMPOSER’ #define MSGINFO_CHOOSE_FROM_ARG_COUNT(...) TWO_FUNC_RECOMPOSER((__VA_ARGS__, MSGINFO_1, )) ^~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:143:30: note: in expansion of macro ‘MSGINFO_CHOOSE_FROM_ARG_COUNT’ #define MSGINFO_CHOOSER(...) MSGINFO_CHOOSE_FROM_ARG_COUNT(MSGINFO_NO_ARG_EXPANDER __VA_ARGS__ ()) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:143:60: note: in expansion of macro ‘MSGINFO_NO_ARG_EXPANDER’ #define MSGINFO_CHOOSER(...) MSGINFO_CHOOSE_FROM_ARG_COUNT(MSGINFO_NO_ARG_EXPANDER __VA_ARGS__ ()) ^~~~~~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:145:23: note: in expansion of macro ‘MSGINFO_CHOOSER’ #define msg_info(...) MSGINFO_CHOOSER(__VA_ARGS__)(__VA_ARGS__) ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:77:9: note: in expansion of macro ‘msg_info’ msg_info()<< UniformMassOpenCLFloat_program->buildProgram(); ^ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/FileInfo.h:90:72: error: ‘helper’ in namespace ‘sofa::sofa’ does not name a type #define SOFA_FILE_INFO sofa::helper::logging::FileInfo::SPtr(new sofa::helper::logging::FileInfo(__FILE__, __LINE__)) ^ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:110:174: note: in expansion of macro ‘SOFA_FILE_INFO’ emitter) sofa::helper::logging::MessageDispatcher::info(sofa::helper::logging::Message::Runtime, sofa::helper::logging::getComponentInfo(emitter), SOFA_FILE_INFO) ^~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:139:66: note: in expansion of macro ‘oldmsg_info’ #define MSGINFO_0() if( sofa::helper::logging::notMuted(this) ) oldmsg_info(this) ^~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:134:41: note: in expansion of macro ‘MSGINFO_0’ #define TWO_FUNC_CHOOSER(_f1, _f2 ,...) _f2 ^~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:135:50: note: in expansion of macro ‘TWO_FUNC_CHOOSER’ #define TWO_FUNC_RECOMPOSER(argsWithParentheses) TWO_FUNC_CHOOSER argsWithParentheses ^~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:141:44: note: in expansion of macro ‘TWO_FUNC_RECOMPOSER’ #define MSGINFO_CHOOSE_FROM_ARG_COUNT(...) TWO_FUNC_RECOMPOSER((__VA_ARGS__, MSGINFO_1, )) ^~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:143:30: note: in expansion of macro ‘MSGINFO_CHOOSE_FROM_ARG_COUNT’ #define MSGINFO_CHOOSER(...) MSGINFO_CHOOSE_FROM_ARG_COUNT(MSGINFO_NO_ARG_EXPANDER __VA_ARGS__ ()) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:143:60: note: in expansion of macro ‘MSGINFO_NO_ARG_EXPANDER’ #define MSGINFO_CHOOSER(...) MSGINFO_CHOOSE_FROM_ARG_COUNT(MSGINFO_NO_ARG_EXPANDER __VA_ARGS__ ()) ^~~~~~~~~~~~~~~~~~~~~~~ /home/pasquale/sofa/src/SofaKernel/modules/SofaHelper/src/sofa/helper/logging/Messaging.h:145:23: note: in expansion of macro ‘MSGINFO_CHOOSER’ #define msg_info(...) MSGINFO_CHOOSER(__VA_ARGS__)(__VA_ARGS__) ^~~~~~~~~~~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:77:9: note: in expansion of macro ‘msg_info’ msg_info()<< UniformMassOpenCLFloat_program->buildProgram(); ^ In file included from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLMemoryManager.h:26:0, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLTypes.h:32, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:22: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp: In function ‘void sofa::sofa::gpu::opencl::UniformMassOpenCL3f_addForce(unsigned int, const float*, sofa::sofa::gpu::opencl::OpenCLKernel)’: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:36:31: error: ‘class sofa::sofa::gpu::opencl::OpenCLKernel’ has no member named ‘offset’ #define ERROR_OFFSET(t) {if(t.offset!=0){printf("Error Offset %s %d: %s %d\n",__FILE__,__LINE__,#t,(int)t.offset);exit(-1);}} ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:95:5: note: in expansion of macro ‘ERROR_OFFSET’ ERROR_OFFSET(f); ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:36:107: error: ‘class sofa::sofa::gpu::opencl::OpenCLKernel’ has no member named ‘offset’ #define ERROR_OFFSET(t) {if(t.offset!=0){printf("Error Offset %s %d: %s %d\n",__FILE__,__LINE__,#t,(int)t.offset);exit(-1);}} ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:95:5: note: in expansion of macro ‘ERROR_OFFSET’ ERROR_OFFSET(f); ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:97:17: error: ‘sofa::sofa::gpu::opencl::OpenCLKernel’ is not a template int BSIZE = gpu::opencl::OpenCLKernel<float>::BSIZE; ^~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:97:51: error: ‘BSIZE’ is not a member of ‘sofa::sofa::gpu::opencl::OpenCLKernel’ int BSIZE = gpu::opencl::OpenCLKernel<float>::BSIZE; ^~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:104:69: error: no matching function for call to ‘sofa::sofa::gpu::opencl::OpenCLKernel::setArg<cl_device_info>(int, sofa::sofa::gpu::opencl::OpenCLKernel*)’ UniformMassOpenCL3f_addForce_kernel->setArg<cl_device_info>(4,&f); ^ In file included from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:28:0: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLKernel.h:54:10: note: candidate: template<class T> void sofa::sofa::gpu::opencl::OpenCLKernel::setArg(int, const T*) void setArg(int numArg,const T* arg) ^~~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLKernel.h:54:10: note: template argument deduction/substitution failed: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:104:69: warning: ignoring attributes on template argument ‘cl_device_info {aka unsigned int}’ [-Wignored-attributes] UniformMassOpenCL3f_addForce_kernel->setArg<cl_device_info>(4,&f); ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:104:67: note: cannot convert ‘& f’ (type ‘sofa::sofa::gpu::opencl::OpenCLKernel*’) to type ‘const unsigned int*’ UniformMassOpenCL3f_addForce_kernel->setArg<cl_device_info>(4,&f); ^~ In file included from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLMemoryManager.h:26:0, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLTypes.h:32, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:22: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp: In function ‘void sofa::sofa::gpu::opencl::UniformMassOpenCL3f_addMDx(unsigned int, float, cl_device_info, cl_device_info)’: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:36:31: error: request for member ‘offset’ in ‘res’, which is of non-class type ‘cl_device_info {aka unsigned int}’ #define ERROR_OFFSET(t) {if(t.offset!=0){printf("Error Offset %s %d: %s %d\n",__FILE__,__LINE__,#t,(int)t.offset);exit(-1);}} ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:120:5: note: in expansion of macro ‘ERROR_OFFSET’ ERROR_OFFSET(res) ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:36:107: error: request for member ‘offset’ in ‘res’, which is of non-class type ‘cl_device_info {aka unsigned int}’ #define ERROR_OFFSET(t) {if(t.offset!=0){printf("Error Offset %s %d: %s %d\n",__FILE__,__LINE__,#t,(int)t.offset);exit(-1);}} ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:120:5: note: in expansion of macro ‘ERROR_OFFSET’ ERROR_OFFSET(res) ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:36:31: error: request for member ‘offset’ in ‘dx’, which is of non-class type ‘const cl_device_info {aka const unsigned int}’ #define ERROR_OFFSET(t) {if(t.offset!=0){printf("Error Offset %s %d: %s %d\n",__FILE__,__LINE__,#t,(int)t.offset);exit(-1);}} ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:121:5: note: in expansion of macro ‘ERROR_OFFSET’ ERROR_OFFSET(dx) ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:36:107: error: request for member ‘offset’ in ‘dx’, which is of non-class type ‘const cl_device_info {aka const unsigned int}’ #define ERROR_OFFSET(t) {if(t.offset!=0){printf("Error Offset %s %d: %s %d\n",__FILE__,__LINE__,#t,(int)t.offset);exit(-1);}} ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:121:5: note: in expansion of macro ‘ERROR_OFFSET’ ERROR_OFFSET(dx) ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:124:17: error: ‘sofa::sofa::gpu::opencl::OpenCLKernel’ is not a template int BSIZE = gpu::opencl::OpenCLKernel<float>::BSIZE; ^~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:124:51: error: ‘BSIZE’ is not a member of ‘sofa::sofa::gpu::opencl::OpenCLKernel’ int BSIZE = gpu::opencl::OpenCLKernel<float>::BSIZE; ^~~~~ In file included from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLMemoryManager.h:26:0, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLTypes.h:32, from /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:22: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp: In function ‘void sofa::sofa::gpu::opencl::UniformMassOpenCL3f_accFromF(unsigned int, float, cl_device_info, cl_device_info)’: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:36:31: error: request for member ‘offset’ in ‘a’, which is of non-class type ‘cl_device_info {aka unsigned int}’ #define ERROR_OFFSET(t) {if(t.offset!=0){printf("Error Offset %s %d: %s %d\n",__FILE__,__LINE__,#t,(int)t.offset);exit(-1);}} ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:147:5: note: in expansion of macro ‘ERROR_OFFSET’ ERROR_OFFSET(a) ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:36:107: error: request for member ‘offset’ in ‘a’, which is of non-class type ‘cl_device_info {aka unsigned int}’ #define ERROR_OFFSET(t) {if(t.offset!=0){printf("Error Offset %s %d: %s %d\n",__FILE__,__LINE__,#t,(int)t.offset);exit(-1);}} ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:147:5: note: in expansion of macro ‘ERROR_OFFSET’ ERROR_OFFSET(a) ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:36:31: error: request for member ‘offset’ in ‘f’, which is of non-class type ‘const cl_device_info {aka const unsigned int}’ #define ERROR_OFFSET(t) {if(t.offset!=0){printf("Error Offset %s %d: %s %d\n",__FILE__,__LINE__,#t,(int)t.offset);exit(-1);}} ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:148:5: note: in expansion of macro ‘ERROR_OFFSET’ ERROR_OFFSET(f) ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/myopencl.h:36:107: error: request for member ‘offset’ in ‘f’, which is of non-class type ‘const cl_device_info {aka const unsigned int}’ #define ERROR_OFFSET(t) {if(t.offset!=0){printf("Error Offset %s %d: %s %d\n",__FILE__,__LINE__,#t,(int)t.offset);exit(-1);}} ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:148:5: note: in expansion of macro ‘ERROR_OFFSET’ ERROR_OFFSET(f) ^ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:152:17: error: ‘sofa::sofa::gpu::opencl::OpenCLKernel’ is not a template int BSIZE = gpu::opencl::OpenCLKernel<float>::BSIZE; ^~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:152:51: error: ‘BSIZE’ is not a member of ‘sofa::sofa::gpu::opencl::OpenCLKernel’ int BSIZE = gpu::opencl::OpenCLKernel<float>::BSIZE; ^~~~~ /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp: At global scope: /home/pasquale/sofa/src/applications/plugins/SofaOpenCL/OpenCLUniformMass.cpp:204:1: error: expected ‘}’ at end of input }// namespace sofa ^
What I have to do?
Thank you,
Pasquale.2 May 2020 at 18:01 #16006Froy
KeymasterHello,
Fixing this plugin is not that simple, as it seems that nobody was compiling for a few years (let alone using it).
I have spent some time to make it work somehow (compile + example scene with quadspring) in VS2019.
The PR is yet to be integrated into the master branch but if you want to test it nevertheless, you can fetch my branch on my repo:
https://github.com/fredroy/sofa/tree/opencl_compile_20_06(NB: I dont know OpenCL that much so if there is any problem in the CL kernels… I will be unable to help 😅 )
2 May 2020 at 19:25 #16007Pasquale94
Blocked6 May 2020 at 12:03 #16067Hugo
KeymasterGreat @pasquale94 keep us posted about your future work!
Thanks @froy! -
AuthorPosts
- You must be logged in to reply to this topic.