mumax / 3

GPU-accelerated micromagnetic simulator
Other
450 stars 150 forks source link

CUFFT-Compatability error #181

Closed Nikhilcs closed 5 years ago

Nikhilcs commented 6 years ago

@During the installation of muax 3.9, I am getting the following error.

../go/src/github.com/mumax/3/cuda/cufft/mode.go:17:52: could not determine kind of name for C.CUFFT_COMPATIBILITY_FFTW_ALL ../go/src/github.com/mumax/3/cuda/cufft/mode.go:16:52: could not determine kind of name for C.CUFFT_COMPATIBILITY_FFTW_ASYMMETRIC ../go/src/github.com/mumax/3/cuda/cufft/mode.go:14:52: could not determine kind of name for C.CUFFT_COMPATIBILITY_NATIVE

Please give some suggestion on it

Nikhilcs commented 6 years ago

Please suggest suitable cuda version for mumax 3.8 final

atypic commented 6 years ago

Function cufftSetCompatibilityMode was removed in CUDA version 9.1, so anything below that should work.

KwangsooKim commented 6 years ago

is it the same problem with me?

# uname -r
3.10.0-862.3.3.el7.x86_64

gcc --version
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-28)
Copyright (C) 2015 Free Software Foundation, Inc.
# go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/root/go"
GORACE=""
GOROOT="/usr/lib/golang"
GOTOOLDIR="/usr/lib/golang/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build016037397=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
# go get -u -v -x github.com/mumax/3/cmd/mumax3

cd /root/go/src/github.com/mumax/3
git config remote.origin.url
github.com/mumax/3 (download)
cd /root/go/src/github.com/mumax/3
git pull --ff-only
cd /root/go/src/github.com/mumax/3
git submodule update --init --recursive
cd /root/go/src/github.com/mumax/3
git show-ref
cd /root/go/src/github.com/mumax/3
git submodule update --init --recursive
cd /root/go/src/github.com/mumax/3
git config remote.origin.url
cd /root/go/src/github.com/mumax/3
git config remote.origin.url
cd /root/go/src/github.com/mumax/3
git config remote.origin.url
cd /root/go/src/github.com/mumax/3
git config remote.origin.url
cd /root/go/src/github.com/mumax/3
git config remote.origin.url
cd /root/go/src/github.com/mumax/3
git config remote.origin.url
cd /root/go/src/github.com/mumax/3
git config remote.origin.url
cd /root/go/src/github.com/mumax/3
git config remote.origin.url
cd /root/go/src/github.com/mumax/3
git config remote.origin.url
cd /root/go/src/github.com/mumax/3
git config remote.origin.url
cd /root/go/src/github.com/mumax/3
git config remote.origin.url
cd /root/go/src/github.com/mumax/3
git config remote.origin.url
cd /root/go/src/github.com/mumax/3
git config remote.origin.url
cd /root/go/src/github.com/mumax/3
git config remote.origin.url
cd /root/go/src/github.com/mumax/3
git config remote.origin.url
cd /root/go/src/github.com/mumax/3
git config remote.origin.url
cd /root/go/src/github.com/mumax/3
git config remote.origin.url
WORK=/tmp/go-build142000419
github.com/mumax/3/cuda/cufft
mkdir -p $WORK/github.com/mumax/3/cuda/cufft/_obj/
mkdir -p $WORK/github.com/mumax/3/cuda/
cd /root/go/src/github.com/mumax/3/cuda/cufft
CGO_LDFLAGS="-g" "-O2" "-lcufft" "-L/usr/local/cuda/lib64" "-L/usr/local/cuda/lib" "-L/usr/local/cuda-6.0/lib64" "-L/usr/local/cuda-6.0/lib" "-L/usr/local/cuda-5.5/lib64" "-L/usr/local/cuda-5.5/lib" "-L/usr/local/cuda-5.0/lib64" "-L/usr/local/cuda-5.0/lib" "-L/usr/lib/x86_64-linux-gnu/" "-L/opt/cuda/lib64" "-L/opt/cuda/lib" /usr/lib/golang/pkg/tool/linux_amd64/cgo -objdir $WORK/github.com/mumax/3/cuda/cufft/_obj/ -importpath github.com/mumax/3/cuda/cufft -- -I $WORK/github.com/mumax/3/cuda/cufft/_obj/ -g -O2 -I/usr/local/cuda/include/ -I/usr/local/cuda-6.0/include/ -I/usr/local/cuda-5.5/include/ -I/usr/local/cuda-5.0/include/ -I/usr/include -I/opt/cuda/include cgoflags.go mode.go plan.go result.go type.go
# github.com/mumax/3/cuda/cufft
../../cuda/cufft/plan.go:193:16: could not determine kind of name for C.cufftSetCompatibilityMode
godsic commented 5 years ago

fixed in 3b2b240db34d55749e1cd01bdadba327b26da67e