This repository was archived by the owner on Jan 13, 2025. It is now read-only.
File tree 3 files changed +10
-6
lines changed 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ DESTDIR ?= dist
18
18
install :
19
19
mkdir -p $(DESTDIR )
20
20
ifneq ($(OS ) ,Darwin)
21
- cp -f src/$(V)/libcuda-crypt.a $(DESTDIR)
22
21
cp -f src/$(V)/libcuda-crypt.so $(DESTDIR)
23
22
endif
24
23
ls -lh $(DESTDIR)
Original file line number Diff line number Diff line change @@ -5,12 +5,17 @@ cd "$(dirname "$0")/.."
5
5
source ci/env.sh
6
6
source ci/upload-ci-artifact.sh
7
7
8
- for CUDA_HOME in /usr/local/cuda-10.0 /usr/local/cuda-10.1; do
9
- CUDA_HOME_BASE=$( basename $CUDA_HOME )
8
+ CUDA_HOMES=(
9
+ /usr/local/cuda-10.0
10
+ /usr/local/cuda-10.1
11
+ )
12
+
13
+ for CUDA_HOME in " ${CUDA_HOMES[@]} " ; do
14
+ CUDA_HOME_BASE=" $( basename " $CUDA_HOME " ) "
10
15
echo " --- Build: $CUDA_HOME_BASE "
11
16
(
12
17
if [[ ! -d $CUDA_HOME /lib64 ]]; then
13
- echo Invalid CUDA_HOME: $CUDA_HOME
18
+ echo " Invalid CUDA_HOME: $CUDA_HOME "
14
19
exit 1
15
20
fi
16
21
@@ -23,7 +28,7 @@ for CUDA_HOME in /usr/local/cuda-10.0 /usr/local/cuda-10.1; do
23
28
make install
24
29
make clean
25
30
26
- cp -vf $CUDA_HOME /version.txt " $DESTDIR " /cuda-version.txt
31
+ cp -vf " $CUDA_HOME " /version.txt " $DESTDIR " /cuda-version.txt
27
32
)
28
33
done
29
34
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ $V/lib$(LIB).a: $V/crypt-dlink.o $V/chacha_cbc.o $V/aes_cbc.o $V/verify.o $V/poh
57
57
$(NVCC ) -Xcompiler " -fPIC" --lib --output-file $@ $^
58
58
59
59
$V/lib$(LIB ) .so : $V/crypt-dlink.o $V/chacha_cbc.o $V/aes_cbc.o $V/verify.o $V/poh_verify.o
60
- $(NVCC ) -Xcompiler " -fPIC" --lib -- shared --output-file $@ $^
60
+ $(NVCC ) -Xcompiler " -fPIC" --shared --output-file $@ $^
61
61
62
62
$V/$(CHACHA_TEST_BIN ) : $(CHACHA_DIR ) /test.cu $V/lib$(LIB ) .a
63
63
$(NVCC ) $(CFLAGS ) -L$V -l$(LIB ) $< -o $@
You can’t perform that action at this time.
0 commit comments