gpu tp2 1

This commit is contained in:
JOLIMAITRE Matthieu 2024-03-10 21:52:59 +01:00
parent a9a59ba1ea
commit 643dc6e4fe
7 changed files with 499 additions and 0 deletions

20
gpu/tp2/c/build.sh Executable file
View file

@ -0,0 +1,20 @@
#!/bin/sh
cd "$(dirname "$(realpath "$0")")"
set -e
TARGET="ex1.cu ex2.cu ex3.cu ex4.cu"
if [ $# -gt 0 ]
then TARGET=$1
fi
rm -fr bin
mkdir -p bin
for target in $TARGET
do nvcc src/$target -o bin/${target%.cu}.out
done
for target in $TARGET
do ./bin/${target%.cu}.out
done