mumax / 3

GPU-accelerated micromagnetic simulator
Other
457 stars 151 forks source link

Building MuMax 3 in different machines #180

Closed davidcortesortuno closed 5 years ago

davidcortesortuno commented 6 years ago

Hi, I'm trying to compile MuMax on a supercomputer where cuda libraries are in /local/software/cuda/9.0. Which files/paths should I modify to make a successful installation?

I was modifying the CGO_LDFLAGS and CGO_CFLAGS variables (I don't know how to make this work by changing the cgoflags.go file) and could run go install -v in /cuda/cu/. I also updated the path in cuda/make.bash and cuda/make-version-specific.bash (compilation seems to run ok) and finally ran go install in cmd/mumax3. It seems to work but when I run mumax3 I only get the error

.../github.com/mumax/3/cuda/init.go:60 Unknown CUresult: 4294967295

I guess there is a specific files I need to modify and procedure I need to follow to make this work?

Thanks

barnex commented 5 years ago

This looks like a driver issue. CUDA fails to initialize, but your driver returns an error number (-1, in disguise) that our CUDA wrapper does not know about.

I recommend to check that your driver and CUDA version are strictly compatible.