File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ CGO_CFLAGS_ALLOW='(-fno-schedule-insns|-malign-double|-ffast-math)'
13
13
14
14
all : cudakernels hooks
15
15
go install -v $(GO_BUILDFLAGS ) github.com/mumax/3/...
16
- cd test && mumax3 -vet * .mx3
17
16
18
17
cudakernels :
19
18
cd cuda && $(MAKE )
40
39
cd cuda && $(MAKE ) clean
41
40
42
41
realclean : clean
43
- cd cuda && make realclean
42
+ cd cuda && ${MAKE} realclean
Original file line number Diff line number Diff line change @@ -39,13 +39,16 @@ for CUDAVERSION in 7.0 7.5 8.0 9.0 9.1 9.2 10.0 10.1 10.2; do
39
39
# We overwrite the CGO Flags to make sure that it is compiled against $CUDAVERSION
40
40
export LD_LIBRARY_PATH=$CUDA_HOME /lib64:$LD_LIBRARY_PATH
41
41
export CGO_LDFLAGS=" -lcufft -lcurand -lcuda -L${CUDA_HOME} /lib64 -Wl,-rpath -Wl,\$ ORIGIN/$RPATH "
42
- export CGO_CFLAGS=" -I${CUDA_HOME} /include -Wl,-rpath -Wl, \$ ORIGIN/ $RPATH "
42
+ export CGO_CFLAGS=" -I${CUDA_HOME} /include"
43
43
44
44
# (Re)build everything
45
45
(cd .. && make realclean && make -j 4 || exit 1)
46
46
47
47
# Copy the executable and the cuda libraries to the output directory
48
- cp $GOPATH /bin/mumax3* $BUILDDIR
48
+ cp $GOPATH /bin/mumax3 $BUILDDIR
49
+ cp $GOPATH /bin/mumax3-convert $BUILDDIR
50
+ cp $GOPATH /bin/mumax3-server $BUILDDIR
51
+ cp ../LICENSE $BUILDDIR
49
52
cp $( ldd ${BUILDDIR} /mumax3 | grep libcufft | awk ' {print $3}' ) ${BUILDDIR} /${RPATH}
50
53
cp $( ldd ${BUILDDIR} /mumax3 | grep libcurand | awk ' {print $3}' ) ${BUILDDIR} /${RPATH}
51
54
Original file line number Diff line number Diff line change @@ -73,5 +73,6 @@ New-Item -ItemType "directory" $builddir
73
73
Copy-Item ${env: GOPATH} / bin/ mumax3.exe - Destination ${builddir}
74
74
Copy-Item ${env: GOPATH} / bin/ mumax3-convert.exe - Destination ${builddir}
75
75
Copy-Item ${env: GOPATH} / bin/ mumax3-server.exe - Destination ${builddir}
76
+ Copy-Item ../ LICENSE - Destination ${builddir}
76
77
Copy-Item ${CUDA_HOME} / bin/ cufft64* .dll - Destination ${builddir}
77
78
Copy-Item ${CUDA_HOME} / bin/ curand64* .dll - Destination ${builddir}
You can’t perform that action at this time.
0 commit comments