Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 55 lines (46 sloc) 0.916 kB
0a9ed18 cuda: added kcuda
Shinpei Kato authored
1 #!/bin/sh
2
c3ebc5a @fj-yukke gdev: shared library\'s libcuda is renaming to libucuda
fj-yukke authored
3 # libucuda or kcuda
4 target='libucuda'
0a9ed18 cuda: added kcuda
Shinpei Kato authored
5
526418b @shinpei0208 gdev: Refactor README files
authored
6 # use Runtime API or not
7 runtime='1'
3e67c15 cuda: added '--with-ptx' configure option for disable execution of th…
iwata-axe authored
8 enablecubin='1'
526418b @shinpei0208 gdev: Refactor README files
authored
9
0a9ed18 cuda: added kcuda
Shinpei Kato authored
10 # parse the given options.
11 for option
12 do
13 case "$option" in
14 -*=*) optarg=`echo "$option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
15 *) optarg= ;;
16 esac
17
18 case "$option" in
19 --target=*)
20 target="$optarg" ;;
526418b @shinpei0208 gdev: Refactor README files
authored
21 --disable-runtime)
3e67c15 cuda: added '--with-ptx' configure option for disable execution of th…
iwata-axe authored
22 runtime='0' ;;
23 --with-ptx)
24 enablecubin='0' ;;
0a9ed18 cuda: added kcuda
Shinpei Kato authored
25 esac
26 done
27
c3ebc5a @fj-yukke gdev: shared library\'s libcuda is renaming to libucuda
fj-yukke authored
28 if [ $target = 'libucuda' ] ; then
526418b @shinpei0208 gdev: Refactor README files
authored
29 cp -f ../libucuda/* .
30 cp -rf ../driver/* .
31 cp -rf ../runtime/ .
32 cp -f ../cudump/* .
0a9ed18 cuda: added kcuda
Shinpei Kato authored
33 elif [ $target = 'kcuda' ] ; then
526418b @shinpei0208 gdev: Refactor README files
authored
34 cp -f ../kcuda/* .
35 cp -rf ../driver/* .
36 # we don't support Runtime API in kernel
37 runtime='0'
0a9ed18 cuda: added kcuda
Shinpei Kato authored
38 else
526418b @shinpei0208 gdev: Refactor README files
authored
39 echo "Error: invalid target '$target'"
0a9ed18 cuda: added kcuda
Shinpei Kato authored
40 fi
526418b @shinpei0208 gdev: Refactor README files
authored
41
42 # create API.mk
43 cat > API.mk << EOF
44 #
45 # Copyright (C) Shinpei Kato
46 # All Rights Reserved
47 #
48 # This is automatically generated by configure script.
49 #
50
51 CUDA_RUNTIME_API=$runtime
3e67c15 cuda: added '--with-ptx' configure option for disable execution of th…
iwata-axe authored
52 ENABLE_CUBIN_MODULE=$enablecubin
526418b @shinpei0208 gdev: Refactor README files
authored
53 EOF
54
Something went wrong with that request. Please try again.