This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
foam-extend4.1-coherent-io/src/cudaSolvers/Allwmake
2014-06-01 20:12:52 +02:00

17 lines
432 B
Bash
Executable file

#!/bin/bash
cd ${0%/*} || exit 1 # run from this directory
if [ -f $CUDA_BIN_DIR/nvcc ]
then
if [ -z $CUDA_IGNORE ]
then
echo "Found nvcc -- enabling CUDA support."
wmake libso
else
echo "Found nvcc but \$CUDA_IGNORE set -- not enabling CUDA support."
fi
else
echo "No nvcc - CUDA not available."
fi
# ----------------------------------------------------------------- end-of-file