Skip to content

error compiling mumax3 #298

@MKe2013

Description

@MKe2013

Hi,

I have tried to compile mumax3 on Ubuntu. I have followed the installation instructions of "https://github.com/mumax/3", but I have not been lucky:

`cgo-gcc-prolog: In function ‘_cgo_c21ce16ee817_Cfunc_cuDeviceComputeCapability’:
cgo-gcc-prolog:56:2: warning: ‘cuDeviceComputeCapability’ is deprecated [-Wdeprecated-declarations]
In file included from /home/mike/go/pkg/mod/github.com/mumax/3@v3.9.3+incompatible/cuda/cu/device.go:5:
/usr/local/cuda/include/cuda.h:4195:36: note: declared here
4195 | __CUDA_DEPRECATED CUresult CUDAAPI cuDeviceComputeCapability(int *major, int *minor, CUdevice dev);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
cgo-gcc-prolog: In function ‘_cgo_c21ce16ee817_Cfunc_cuDeviceGetProperties’:
cgo-gcc-prolog:159:2: warning: ‘cuDeviceGetProperties’ is deprecated [-Wdeprecated-declarations]
In file included from /home/mike/go/pkg/mod/github.com/mumax/3@v3.9.3+incompatible/cuda/cu/device.go:5:
/usr/local/cuda/include/cuda.h:4161:36: note: declared here
4161 | __CUDA_DEPRECATED CUresult CUDAAPI cuDeviceGetProperties(CUdevprop *prop, CUdevice dev);
| ^~~~~~~~~~~~~~~~~~~~~

github.com/mumax/3/cuda/curand

/home/mike/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

github.com/mumax/3/cuda/cufft

/home/mike/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
/home/mike/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
/home/mike/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
`

I have Cuda 11.5 installed (diver version 495.29.05).

thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions