From 886e61384a4e226299f2d476a1211ff62c28a1ed Mon Sep 17 00:00:00 2001 From: augustin64 Date: Mon, 27 Jun 2022 10:59:56 +0200 Subject: [PATCH] Add CUDA tests --- make.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/make.sh b/make.sh index eaa49c8..dd07843 100755 --- a/make.sh +++ b/make.sh @@ -32,6 +32,11 @@ build () { $CC "$i" -o "$OUT/test_$(echo $i | awk -F. '{print $1}' | awk -F/ '{print $NF}')" $FLAGS echo "Fait." done + for i in "test/"*".cu"; do + echo "Compilation de $i" + nvcc "$i" -o "$OUT/test_$(echo $i | awk -F. '{print $1}' | awk -F/ '{print $NF}')" + echo "Fait." + done return 0 elif [[ $1 == "utils" ]]; then echo "Compilation de src/mnist/utils.c"