|
本帖最后由 tjuptz 于 2022-4-3 17:05 编辑
我编译的时候没开gpu,不过相比没加磁场设定就慢了很多。我再编译一个版本试试能不能用gpu
PS1:注释掉那两行后的CPU版本,速度就和源码CPU版本差不多了。应该是可以用了。
PS2::试了下编译GPU版本的过不去,到CudaPmeSolverUtil.C这个就报错了,错误前面延续挺长我就截取了一部分。还试了下源码编译,这个问题是只用下载的源码编译就有的,跟磁场补丁包没关系,不太懂咋回事。
- In file included from src/CudaPmeSolverUtil.C:9:0:
- src/CudaPmeSolverUtil.C: In member function ‘virtual void CudaFFTCompute::plan3D(int*, int)’:
- src/CudaPmeSolverUtil.C:51:85: error: ‘cufftSetCompatibilityMode’ was not declared in this scope
- cufftCheck(cufftSetCompatibilityMode(forwardPlan, CUFFT_COMPATIBILITY_FFTW_PADDING));
- ^
- src/CudaPmeSolverUtil.h:18:21: note: in definition of macro ‘cufftCheck’
- cufftResult err = stmt; \
- ^
- src/CudaPmeSolverUtil.C:52:86: error: ‘cufftSetCompatibilityMode’ was not declared in this scope
- cufftCheck(cufftSetCompatibilityMode(backwardPlan, CUFFT_COMPATIBILITY_FFTW_PADDING));
- ^
- src/CudaPmeSolverUtil.h:18:21: note: in definition of macro ‘cufftCheck’
- cufftResult err = stmt; \
- ^
- src/CudaPmeSolverUtil.C: In member function ‘virtual void CudaFFTCompute::plan2D(int*, int, int)’:
- src/CudaPmeSolverUtil.C:64:85: error: ‘cufftSetCompatibilityMode’ was not declared in this scope
- cufftCheck(cufftSetCompatibilityMode(forwardPlan, CUFFT_COMPATIBILITY_FFTW_PADDING));
- ^
- src/CudaPmeSolverUtil.h:18:21: note: in definition of macro ‘cufftCheck’
- cufftResult err = stmt; \
- ^
- src/CudaPmeSolverUtil.C:65:86: error: ‘cufftSetCompatibilityMode’ was not declared in this scope
- cufftCheck(cufftSetCompatibilityMode(backwardPlan, CUFFT_COMPATIBILITY_FFTW_PADDING));
- ^
- src/CudaPmeSolverUtil.h:18:21: note: in definition of macro ‘cufftCheck’
- cufftResult err = stmt; \
- ^
- src/CudaPmeSolverUtil.C: In member function ‘virtual void CudaFFTCompute::plan1DX(int*, int, int)’:
- src/CudaPmeSolverUtil.C:76:85: error: ‘cufftSetCompatibilityMode’ was not declared in this scope
- cufftCheck(cufftSetCompatibilityMode(forwardPlan, CUFFT_COMPATIBILITY_FFTW_PADDING));
- ^
- src/CudaPmeSolverUtil.h:18:21: note: in definition of macro ‘cufftCheck’
- cufftResult err = stmt; \
- ^
- src/CudaPmeSolverUtil.C:77:86: error: ‘cufftSetCompatibilityMode’ was not declared in this scope
- cufftCheck(cufftSetCompatibilityMode(backwardPlan, CUFFT_COMPATIBILITY_FFTW_PADDING));
- ^
- src/CudaPmeSolverUtil.h:18:21: note: in definition of macro ‘cufftCheck’
- cufftResult err = stmt; \
- ^
- src/CudaPmeSolverUtil.C: In member function ‘virtual void CudaFFTCompute::plan1DY(int*, int, int)’:
- src/CudaPmeSolverUtil.C:88:85: error: ‘cufftSetCompatibilityMode’ was not declared in this scope
- cufftCheck(cufftSetCompatibilityMode(forwardPlan, CUFFT_COMPATIBILITY_FFTW_PADDING));
- ^
- src/CudaPmeSolverUtil.h:18:21: note: in definition of macro ‘cufftCheck’
- cufftResult err = stmt; \
- ^
- src/CudaPmeSolverUtil.C:89:86: error: ‘cufftSetCompatibilityMode’ was not declared in this scope
- cufftCheck(cufftSetCompatibilityMode(backwardPlan, CUFFT_COMPATIBILITY_FFTW_PADDING));
- ^
- src/CudaPmeSolverUtil.h:18:21: note: in definition of macro ‘cufftCheck’
- cufftResult err = stmt; \
- ^
- src/CudaPmeSolverUtil.C: In member function ‘virtual void CudaFFTCompute::plan1DZ(int*, int, int)’:
- src/CudaPmeSolverUtil.C:100:85: error: ‘cufftSetCompatibilityMode’ was not declared in this scope
- cufftCheck(cufftSetCompatibilityMode(forwardPlan, CUFFT_COMPATIBILITY_FFTW_PADDING));
- ^
- src/CudaPmeSolverUtil.h:18:21: note: in definition of macro ‘cufftCheck’
- cufftResult err = stmt; \
- ^
- src/CudaPmeSolverUtil.C:101:86: error: ‘cufftSetCompatibilityMode’ was not declared in this scope
- cufftCheck(cufftSetCompatibilityMode(backwardPlan, CUFFT_COMPATIBILITY_FFTW_PADDING));
- ^
- src/CudaPmeSolverUtil.h:18:21: note: in definition of macro ‘cufftCheck’
- cufftResult err = stmt; \
- ^
- make: *** [obj/CudaPmeSolverUtil.o] Error 1
- make: *** Waiting for unfinished jobs....
复制代码
|
|