Add CUDA tests

This commit is contained in:
augustin64 2022-06-27 10:59:56 +02:00
parent e984ec5cdd
commit 886e61384a

View File

@ -32,6 +32,11 @@ build () {
$CC "$i" -o "$OUT/test_$(echo $i | awk -F. '{print $1}' | awk -F/ '{print $NF}')" $FLAGS $CC "$i" -o "$OUT/test_$(echo $i | awk -F. '{print $1}' | awk -F/ '{print $NF}')" $FLAGS
echo "Fait." echo "Fait."
done 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 return 0
elif [[ $1 == "utils" ]]; then elif [[ $1 == "utils" ]]; then
echo "Compilation de src/mnist/utils.c" echo "Compilation de src/mnist/utils.c"