Skip to content

Commit

Permalink
package.source test runs all binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
barnex committed Nov 26, 2013
1 parent a94a118 commit cc6bfdd
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bootstrap/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func main() {
}
}

cmds := []string{"mumax3-cuda5.5", "mumax3-cuda5.0", "mumax3-cuda4.2"}
cmds := []string{"mumax3-cuda5.5", "mumax3-cuda5.0", "mumax3-cuda4.2.9"}
mumax := ""
for _, cmd := range cmds {
cmd := bin + "/" + cmd
Expand Down
23 changes: 19 additions & 4 deletions package.source
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,43 @@ version='3.3-BETA1'

go build -o $tmp/mumax3/mumax3-convert 'github.com/mumax/3/tools/mumax3-convert'
go build -o $tmp/mumax3/mumax3-plot 'github.com/mumax/3/tools/mumax3-plot'
go build -o $tmp/mumax3/mumax3 'github.com/mumax/3/bootstrap'


for c in 4.2 5.0 5.5; do
for c in 4.2.9 5.0 5.5; do
sudo rm -f /usr/local/cuda
echo ln -s /usr/local/cuda-$c /usr/local/cuda
sudo ln -s /usr/local/cuda-$c /usr/local/cuda

lib=/usr/local/cuda-$c/lib64
cp $lib/libcufft.so.$c $tmp/mumax3
cp $lib/libcurand.so.$c $tmp/mumax3
lib=/usr/local/cuda-$c/lib64
cp $lib/libcufft.so.$c $tmp/mumax3
cp $lib/libcurand.so.$c $tmp/mumax3
cp $lib/libcudart.so.$c $tmp/mumax3

arch='cuda'$c
out=$tmp/mumax3/mumax3-$arch

echo go build $src -o $out
go build -v -o $out $src
ldd $out

(cd $tmp/mumax3 &&
./mumax3 -v -test
)

echo
done

(cd $tmp/mumax3 &&
mv libcufft.so.4.2.9 libcufft.so.4
mv libcurand.so.4.2.9 libcurand.so.4
mv libcudart.so.4.2.9 libcudart.so.4
rm libcudart.so.5.5
)

sudo rm -f /usr/local/cuda


echo ln -s /usr/local/cuda-5.5 /usr/local/cuda
sudo ln -s /usr/local/cuda-5.5 /usr/local/cuda

0 comments on commit cc6bfdd

Please sign in to comment.