version 1.110 | version 1.111 |
---|
| |
echo ' (do NOT use MIC-enabled Charm++, NAMD does not need it)' | echo ' (do NOT use MIC-enabled Charm++, NAMD does not need it)' |
echo ' --cuda-prefix <directory containing CUDA bin, lib, and include>' | echo ' --cuda-prefix <directory containing CUDA bin, lib, and include>' |
echo ' --cuda-gencode arch=<arch>,code=<code> (may be repeated)' | echo ' --cuda-gencode arch=<arch>,code=<code> (may be repeated)' |
| echo ' --cuda-dlink arch=<arch>,code=<code> (for cuFFT, may be repeated)' |
echo '' | echo '' |
if ( $?PRINT_ARCH_LIST ) then | if ( $?PRINT_ARCH_LIST ) then |
set ARCH_PAT = '' | set ARCH_PAT = '' |
| |
| |
set PYTHON_PREFIX="/usr" | set PYTHON_PREFIX="/usr" |
set CUDA_GENCODE = "" | set CUDA_GENCODE = "" |
| set CUDA_DLINK = "" |
| |
while ( $#argv > 0 ) | while ( $#argv > 0 ) |
if ( $1 !~ --* ) then | if ( $1 !~ --* ) then |
| |
endif | endif |
set CUDA_GENCODE = ( $CUDA_GENCODE -gencode $1 ) | set CUDA_GENCODE = ( $CUDA_GENCODE -gencode $1 ) |
breaksw | breaksw |
| case --cuda-dlink: |
| shift |
| if ( ! $#argv ) then |
| echo "ERROR: --cuda-dlink requires an argument" |
| goto syntax |
| endif |
| set CUDA_DLINK = ( $CUDA_DLINK -gencode $1 ) |
| breaksw |
| |
case --with-memopt: | case --with-memopt: |
set use_memopt = 1 | set use_memopt = 1 |
| |
else if ( $use_fftw ) echo 'include .rootdir/arch/$(NAMD_ARCH).fftw' >> Make.config | else if ( $use_fftw ) echo 'include .rootdir/arch/$(NAMD_ARCH).fftw' >> Make.config |
endif | endif |
if ( $use_cuda ) echo 'include .rootdir/arch/$(NAMD_ARCH).cuda' >> Make.config | if ( $use_cuda ) echo 'include .rootdir/arch/$(NAMD_ARCH).cuda' >> Make.config |
if ( $use_cuda && "x$CUDA_GENCODE" != x ) echo "CUDAGENCODE = $CUDA_GENCODE" >> Make.config | if ( $use_cuda && "x$CUDA_GENCODE" != x ) then |
| echo "CUDAGENCODE = $CUDA_GENCODE" >> Make.config |
| if ( "x$CUDA_DLINK" != x ) then |
| echo "CUDADLINKOPTS = $CUDA_DLINK" >> Make.config |
| else |
| echo "# runtime error if dlink architectures not available in libcufft_static" >> Make.config |
| echo "CUDADLINKOPTS = $CUDA_GENCODE" >> Make.config |
| endif |
| endif |
| |
if ( $use_memopt ) echo 'MEMOPT=-DMEM_OPT_VERSION' >> Make.config | if ( $use_memopt ) echo 'MEMOPT=-DMEM_OPT_VERSION' >> Make.config |
| |