richard-evans / vampire

Atomistic simulator for magnetic materials
GNU General Public License v2.0
122 stars 91 forks source link

Compire opencl failed #78

Open nujabse opened 2 years ago

nujabse commented 2 years ago

I tried to compile the opencl version of Vampire using the latest develop branch. However, the compile failed, the error messages are:

g++ -std=c++0x -DCOMP='"GNU C++ Compiler"' -c -o obj/gpu/initialize.o -O3 -mtune=native -funroll-all-loops -fexpensive-optimizations -funroll-loops -I./hdr -I./src/qvoronoi -std=c++0x -std=c++11 -DOPENCL  src/gpu/initialize.cpp
src/gpu/initialize.cpp: In function 'void gpu::initialize_dipole()':
src/gpu/initialize.cpp:57:19: error: 'initialize_dipole' is not a member of 'vopencl'; did you mean 'gpu::initialize_dipole'?
   57 |          vopencl::initialize_dipole();
      |                   ^~~~~~~~~~~~~~~~~
src/gpu/initialize.cpp:49:9: note: 'gpu::initialize_dipole' declared here
   49 |    void initialize_dipole(){
      |         ^~~~~~~~~~~~~~~~~
make: *** [makefile:199: obj/gpu/initialize.o] Error 1

I'm quite sure that the needed opencl headers are corrected installed, can you take a look at this?