Hi,
when I try to compile some code I get a problem at the linking stage:
ifort -c -O3 sgemm_speed_pinned.f90 -I ../../1.0/ifort_3.10.0-957.5.1.el7.x86_64/
ifort -o sgemm_speed_cublas_pinned -O3 sgemm_speed_pinned.o ../../1.0/ifort_3.10.0-957.5.1.el7.x86_64/Lib_CUDA_ifort_3.10.0-957.5.1.el7.x86_64_1.0.a -L/usr/local/cuda//lib64 -lcudart_static -lcublas_static -lcusparse_static -lculibos -lrt -lstdc++
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libcublas_static.a(cublas.o): In function `cublasCtxInit(cublasContext**)':
cublas.compute_75.cudafe1.cpp:(.text+0x34b): undefined reference to `cublasLtCtxInit'
cublas.compute_75.cudafe1.cpp:(.text+0x417): undefined reference to `init_gemm_select'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libcublas_static.a(cublas.o): In function `cublasGetProperty':
cublas.compute_75.cudafe1.cpp:(.text+0x2257): undefined reference to `cublasLtGetProperty'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libcublas_static.a(cublas.o): In function `cublasGetVersion_v2':
cublas.compute_75.cudafe1.cpp:(.text+0x484a): undefined reference to `cublasLtGetVersion'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libcublas_static.a(cublas.o): In function `cublasDestroy_v2':
cublas.compute_75.cudafe1.cpp:(.text+0x4fc9): undefined reference to `cublasLtShutdownCtx'
cublas.compute_75.cudafe1.cpp:(.text+0x5064): undefined reference to `free_gemm_select'
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libcublas_static.a(cublas.o): In function `cublasGetCudartVersion':
cublas.compute_75.cudafe1.cpp:(.text+0x2a1): undefined reference to `cublasLtGetCudartVersion'
The cuda version is 10.1.105, the linux kernel is centos 3.10-957.
When the same code is compiled using dynamic linking there are NO errors. When the same code is compiled and linked at an arch linux machine, kernel 5, cuda 10.0.130, is compiles and links with NO error either statically or dynamically.
Any suggestions??