Skip to content

Commit 733f0b5

Browse files
committed
build: copy the CUDA source files and CudaGM files to NAMD
1 parent c1f1e1a commit 733f0b5

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

update-colvars-code.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,28 @@ then
377377
fi
378378
done
379379

380+
# Update the Colvars CUDA source files
381+
# echo "Copy Colvars CUDA source files"
382+
mkdir -p "${target}/colvars/src/cuda"
383+
for src in ${source}/src/cuda/*.h ${source}/src/cuda/*.cu
384+
do \
385+
tgt=$(basename ${src})
386+
condcopy "${src}" "${target}/colvars/src/cuda/${tgt}"
387+
done
388+
389+
# Update the NAMD CudaGlobalMaster interface files
390+
# echo "Copy Colvars-NAMD CudaGlobalMaster interface files"
391+
mkdir -p "${target}/colvars/namd/cudaglobalmaster"
392+
for src in \
393+
${source}/namd/cudaglobalmaster/*.h \
394+
${source}/namd/cudaglobalmaster/*.C \
395+
${source}/namd/cudaglobalmaster/*.cu \
396+
${source}/namd/cudaglobalmaster/CMakeLists.txt
397+
do \
398+
tgt=$(basename ${src})
399+
condcopy "${src}" "${target}/colvars/namd/cudaglobalmaster/${tgt}"
400+
done
401+
380402
# Update abf_integrate
381403
for src in ${source}/colvartools/*h ${source}/colvartools/*cpp
382404
do \

0 commit comments

Comments
 (0)