gpu tp2 1
This commit is contained in:
parent
a9a59ba1ea
commit
643dc6e4fe
7 changed files with 499 additions and 0 deletions
20
gpu/tp2/c/build.sh
Executable file
20
gpu/tp2/c/build.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue