xhsgetrf_gpu.cpp:244:53: error: 'approx_float_to_half' was not declared in this scope

Issue #47 resolved
Gerald Ragghianti created an issue

Reported by AdamStewart here: https://github.com/spack/spack/issues/24598

Version 2.6.0

CUDA version: 9

[ 14%] Building CXX object CMakeFiles/magma.dir/src/xhsgetrf_gpu.cpp.o
/mnt/a/u/sciteam/stewart1/spack/lib/spack/env/gcc/g++ -DMAGMA_WITH_MKL -Dmagma_EXPORTS -I/opt/nvidia/cudatoolkit9.1/9.1.85_3.10-1.0502.df1cc54.3.1/include -I/mnt/a/u/sciteam/stewart1/spack/opt/spack/cray-cnl5-bulldozer/gcc-5.5.0/intel-mkl-2020.4.304-77jrsvdrukcukhmifxswa66aspn4nncp/compilers_and_libraries_2020.4.304/linux/mkl/include -I/mnt/c/scratch/sciteam/stewart1/spack-stage-magma-2.6.0-j74jdmqh6n3ozccw5rhbfzm5gmxy4pgf/spack-build-j74jdmq/include -I/scratch/sciteam/stewart1/spack-stage-magma-2.6.0-j74jdmqh6n3ozccw5rhbfzm5gmxy4pgf/spack-src/include -I/scratch/sciteam/stewart1/spack-stage-magma-2.6.0-j74jdmqh6n3ozccw5rhbfzm5gmxy4pgf/spack-src/control -I/scratch/sciteam/stewart1/spack-stage-magma-2.6.0-j74jdmqh6n3ozccw5rhbfzm5gmxy4pgf/spack-src/magmablas -I/scratch/sciteam/stewart1/spack-stage-magma-2.6.0-j74jdmqh6n3ozccw5rhbfzm5gmxy4pgf/spack-src/sparse/include -I/scratch/sciteam/stewart1/spack-stage-magma-2.6.0-j74jdmqh6n3ozccw5rhbfzm5gmxy4pgf/spack-src/sparse/control -I/scratch/sciteam/stewart1/spack-stage-magma-2.6.0-j74jdmqh6n3ozccw5rhbfzm5gmxy4pgf/spack-src/testing -std=c++11 -fopenmp -Wall -Wno-unused-function -O2 -g -DNDEBUG -fPIC -MD -MT CMakeFiles/magma.dir/src/xhsgetrf_gpu.cpp.o -MF CMakeFiles/magma.dir/src/xhsgetrf_gpu.cpp.o.d -o CMakeFiles/magma.dir/src/xhsgetrf_gpu.cpp.o -c /scratch/sciteam/stewart1/spack-stage-magma-2.6.0-j74jdmqh6n3ozccw5rhbfzm5gmxy4pgf/spack-src/src/xhsgetrf_gpu.cpp
/scratch/sciteam/stewart1/spack-stage-magma-2.6.0-j74jdmqh6n3ozccw5rhbfzm5gmxy4pgf/spack-src/src/xhsgetrf_gpu.cpp: In function 'magma_int_t magma_xhsgetrf_gpu(magma_int_t, magma_int_t, magmaFloat_ptr, magma_int_t, magma_int_t*, magma_int_t*, magma_mp_type_t, magma_mp_type_t)':
/scratch/sciteam/stewart1/spack-stage-magma-2.6.0-j74jdmqh6n3ozccw5rhbfzm5gmxy4pgf/spack-src/src/xhsgetrf_gpu.cpp:244:53: error: 'approx_float_to_half' was not declared in this scope
const magmaHalf h_one = approx_float_to_half(1.0);

Comments (4)

  1. Gerald Ragghianti reporter

    I believe that CUDA_VERSION is being set to an unexpected value when using the cmake build. The test used in this source file is CUDA_VERSION >= 9020 , but cmake is setting CUDA_VERSION to 9.1.

  2. Log in to comment