|
好的,谢谢付老师!
还有一个问题是最后./config的时候显示如下警告:
- CUDA detected: version 12.1
- using Linux-x86_64.cuda11
- Warning: CUDA build found is less than version 12.1
复制代码
似乎是我的cuda版本与cuda build不符,我进NAMD源文件目录下的arch文件夹看了一下,找不到Linux-x86_64.cuda12,只有Linux-x86_64.cuda11,进这个文件看了一下发现这个文件是写cuda gencode的,本想自己修改得到一个Linux-x86_64.cuda12,把文本里面的11都换成了12,还加入了新的Ada Lovelace架构的gencode(因为GPU是4080),自己编写的Linux-x86_64.cuda12内容如下:
- # suppliment and override build definitions for CUDA 12
-
- # set directory default for TCB file system, override by user config
- CUDADIR=/usr/local/encap/cuda-12.1
- # CUDA 12 has deprecated compute capability 3.x and 5.x
- # limit CUDADLINKOPTS to architectures available in libcufft_static
- CUDADLINKOPTS = \
- -gencode arch=compute_89,code=sm_89 \
- -gencode arch=compute_89,code=compute_89
- CUDAGENCODE = \
- -gencode arch=compute_89,code=sm_89 \
- -gencode arch=compute_89,code=compute_89
复制代码
但make depends的时候还是出现了error:
- checking dependencies for src/MigrationBondedCUDAKernel.cu
- In file included from /usr/local/cuda/include/thrust/system/cuda/config.h:42,
- from /usr/local/cuda/include/thrust/system/cuda/detail/execution_policy.h:35,
- from /usr/local/cuda/include/thrust/iterator/detail/device_system_tag.h:23,
- from /usr/local/cuda/include/thrust/iterator/detail/iterator_facade_category.h:22,
- from /usr/local/cuda/include/thrust/iterator/iterator_facade.h:37,
- from .rootdir/cub/namd_cub/device/../iterator/arg_index_input_iterator.cuh:48,
- from .rootdir/cub/namd_cub/device/device_reduce.cuh:41,
- from .rootdir/cub/namd_cub/cub.cuh:53,
- from src/MigrationBondedCUDAKernel.cu:10:
- /usr/local/cuda/include/cub/util_namespace.cuh:46:2: error: #error CUB requires a definition of CUB_NS_QUALIFIER when CUB_NS_PREFIX/POSTFIX are defined.
- #error CUB requires a definition of CUB_NS_QUALIFIER when CUB_NS_PREFIX/POSTFIX are defined.
- checking dependencies for src/MigrationCUDAKernel.cu
- ......
复制代码
大概出现了13个这样的相似报错,报错信息完全一样,不同的是checking的项目不一样,但全是与cuda相关的(上面仅列出两个),这种情况是只能重装cuda吗?因为主要用gromacs,故安装了比较新的cuda12.1,没想到NAMD居然没有支持cuda12......
其实我用NAMD主要是想尝试一下BFEE2的蛋白-蛋白结合自由能计算,不知道能否直接使用binary版本?如果可以的话还是不编译安装了,重装cuda实在是太麻烦了
还有想请教一下付老师BFEE2计算糖蛋白(使用Charmm36m力场,CHARMM-GUI生成)的结合自由能效果如何?因为之前使用过gmx_MMPBSA感觉效果不是很好,所以想试试采样的方法看看会不会效果好一点 |
|