Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building MuMax 3 in different machines #180

Closed
davidcortesortuno opened this issue Jun 6, 2018 · 1 comment
Closed

Building MuMax 3 in different machines #180

davidcortesortuno opened this issue Jun 6, 2018 · 1 comment

Comments

@davidcortesortuno
Copy link

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
Copy link
Member

barnex commented Dec 3, 2018

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.

@godsic godsic closed this as completed Mar 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants