gpu_tp1
This commit is contained in:
parent
917b2258ad
commit
6054d1ada0
6 changed files with 264 additions and 0 deletions
20
gpu/tp1/c/build.sh
Executable file
20
gpu/tp1/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