ccsb-scripps / AutoDock-GPU

AutoDock for GPUs and other accelerators
https://ccsb.scripps.edu/autodock
GNU General Public License v2.0
366 stars 101 forks source link

support turing and ampere for CUDA #220

Open forrestjgq opened 1 year ago

forrestjgq commented 1 year ago

In turing and ampere device, invalid device symbol will be reported in:

123 static __constant__ GpuData cData;
124 static GpuData cpuData;
125 
126 void SetKernelsGpuData(GpuData* pData)
127 {
128     cudaError_t status;
129     status = cudaMemcpyToSymbol(cData, pData, sizeof(GpuData));                                                         
130    >> RTERROR(status, "SetKernelsGpuData copy to cData failed");
131     memcpy(&cpuData, pData, sizeof(GpuData));
132 }
syntesys87 commented 1 month ago

Tried in a system with a 4070ti and cuda 11.8. Working!

TitouanCh commented 1 month ago

works for rtx a4500