Skip to content

Commit

Permalink
CI: Add debug information for CUDA builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jngrad committed Dec 2, 2022
1 parent f8e5b07 commit d91bb12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion maintainer/CI/build_cmake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ else
fi

command -v nvidia-smi && nvidia-smi || true
nvidia-smi -L || true
if [ "${hide_gpu}" = true ]; then
echo "Hiding gpu from Cuda via CUDA_VISIBLE_DEVICES"
export CUDA_VISIBLE_DEVICES=""
Expand Down Expand Up @@ -297,7 +298,7 @@ if [ "${run_checks}" = true ]; then

# fail if built with CUDA but no compatible GPU was found
if [ "${with_cuda}" = true ] && [ "${hide_gpu}" != true ]; then
./pypresso -c "import espressomd.cuda_init as gpu;gpu.CudaInitHandle().device = 0" || exit 1
./pypresso -c "import espressomd.cuda_init as gpu;gpu.CudaInitHandle().device = 0" || (command -v nvidia-smi && nvidia-smi || true ; exit 1)
fi

# unit tests
Expand Down

0 comments on commit d91bb12

Please sign in to comment.