Open Falconcp opened 4 years ago
Please ensure your gopath and cuda is set correctly.
Then go to 3/cuda folder, run clean.bash , then make.bash.
Finally, cmd/mumax go install.
Mateusz
sob., 18 sty 2020, 04:04 użytkownik Falconcp notifications@github.com napisał:
I need to compile mumax3 from source file, becouse the server has cuda 10.2.
when I put ./make.bash,
.git/hooks/pre-commit does not exist
uda2go.go:21:2: cannot find package "github.com/mumax/3/util" in any of: /usr/lib/go-1.12/src/github.com/mumax/3/util (from $GOROOT) /home/mario/go/src/github.com/mumax/3/util (from $GOPATH)
what is the problem?
thanks
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mumax/3/issues/248?email_source=notifications&email_token=AD3VD6TEFEQWYNP5IA4I3DTQ6JWVNA5CNFSM4KIQVBX2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IHCO2AA, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD3VD6XYPMBT7R3DSCTAQJ3Q6JWVNANCNFSM4KIQVBXQ .
show an error: i have installed cuda 10.2
go: finding github.com/mumax/3 v3.9.3+incompatible go: downloading github.com/mumax/3 v3.9.3+incompatible go: extracting github.com/mumax/3 v3.9.3+incompatible
/root/go/pkg/mod/github.com/mumax/3@v3.9.3+incompatible/cuda/curand/generator.go:46:102: identifier "_Ctype_ulonglong" may conflict with identifiers generated by cgo
cgo-gcc-prolog: In function ‘_cgo_c21ce16ee817_Cfunc_cuDeviceComputeCapability’:
cgo-gcc-prolog:55:2: warning: ‘cuDeviceComputeCapability’ is deprecated [-Wdeprecated-declarations]
In file included from /root/go/pkg/mod/github.com/mumax/3@v3.9.3+incompatible/cuda/cu/device.go:5:
/usr/local/cuda/include/cuda.h:3335:36: note: declared here
3335 | __CUDA_DEPRECATED CUresult CUDAAPI cuDeviceComputeCapability(int major, int minor, CUdevice dev);
| ^~~~~~~~~
cgo-gcc-prolog: In function ‘_cgo_c21ce16ee817_Cfunc_cuDeviceGetProperties’:
cgo-gcc-prolog:158:2: warning: ‘cuDeviceGetProperties’ is deprecated [-Wdeprecated-declarations]
In file included from /root/go/pkg/mod/github.com/mumax/3@v3.9.3+incompatible/cuda/cu/device.go:5:
/usr/local/cuda/include/cuda.h:3301:36: note: declared here
3301 | __CUDA_DEPRECATED CUresult CUDAAPI cuDeviceGetProperties(CUdevprop *prop, CUdevice dev);
| ^~~~~
/root/go/pkg/mod/github.com/mumax/3@v3.9.3+incompatible/cuda/cufft/mode.go:17:52: could not determine kind of name for C.CUFFT_COMPATIBILITY_FFTW_ALL /root/go/pkg/mod/github.com/mumax/3@v3.9.3+incompatible/cuda/cufft/mode.go:16:52: could not determine kind of name for C.CUFFT_COMPATIBILITY_FFTW_ASYMMETRIC /root/go/pkg/mod/github.com/mumax/3@v3.9.3+incompatible/cuda/cufft/mode.go:14:52: could not determine kind of name for C.CUFFT_COMPATIBILITY_NATIVE
Please ensure that, you have all files from repo.
sob., 18 sty 2020 o 17:09 Falconcp notifications@github.com napisał(a):
when I execute ./make.bash, the terminal show:
cuda2go.go:21:2: cannot find package "github.com/mumax/3/util" in any of: /usr/lib/go-1.12/src/github.com/mumax/3/util (from $GOROOT) /home/JKwork/src/github.com/mumax/3/util (from $GOPATH)
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mumax/3/issues/248?email_source=notifications&email_token=AD3VD6QNFPVFB7WV4DNSNADQ6MSR5A5CNFSM4KIQVBX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJJ3Y3Y#issuecomment-575913071, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD3VD6RVR26KANEOY2RVWMLQ6MSR5ANCNFSM4KIQVBXQ .
-- Mateusz Zelent
This still seems to be an issue - I hit it using NVHPC:
bash-4.4$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2020 NVIDIA Corporation
Built on Mon_Nov_30_19:08:53_PST_2020
Cuda compilation tools, release 11.2, V11.2.67
Build cuda_11.2.r11.2/compiler.29373293_0
on our new cluster
In the end, it was impossible for me to install it on Ubuntu. I installed it in windows using a virtual machine.
exactly the same issues using NVHPC
nvcc --version nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2022 NVIDIA Corporation Built on Thu_Feb_10_18:23:41_PST_2022 Cuda compilation tools, release 11.6, V11.6.112 Build cuda_11.6.r11.6/compiler.30978841_0
I need to compile mumax3 from source file, becouse the server has cuda 10.2.
when I put ./make.bash,
.git/hooks/pre-commit does not exist
uda2go.go:21:2: cannot find package "github.com/mumax/3/util" in any of: /usr/lib/go-1.12/src/github.com/mumax/3/util (from $GOROOT) /home/mario/go/src/github.com/mumax/3/util (from $GOPATH)
what is the problem?
thanks