Magma 2.5 Installation Problem

Issue #11 resolved
nima sahraneshin created an issue

I have a problem in installation of 2.5.0, the errors is something like this:

nvcc -O3 -DNDEBUG -DADD_ -Xcompiler "-fPIC" -std=c++11 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_30,code=compute_30 -I/usr/local/cuda/include -I./include -I./control -I./magmablas -I./sparse/include -I./sparse/control -I./sparse/include -dc -o sparse/blas/magma_dsampleselect_core.o sparse/blas/magma_dsampleselect_core.cu sparse/blas/magma_dsampleselect_core.cu(203): error: calling a global function("select_bitonic_basecase") from a device function("launch_sampleselect") is only allowed on the compute_35 architecture or above

sparse/blas/magma_dsampleselect_core.cu(209): error: calling a global function("build_searchtree") from a device function("launch_sampleselect") is only allowed on the compute_35 architecture or above

sparse/blas/magma_dsampleselect_core.cu(220): error: calling a global function("count_buckets_write") from a device function("launch_sampleselect") is only allowed on the compute_35 architecture or above

sparse/blas/magma_dsampleselect_core.cu(221): error: calling a global function("prefix_sum_counts") from a device function("launch_sampleselect") is only allowed on the compute_35 architecture or above

sparse/blas/magma_dsampleselect_core.cu(222): error: calling a global function("sampleselect_findbucket") from a device function("launch_sampleselect") is only allowed on the compute_35 architecture or above

sparse/blas/magma_dsampleselect_core.cu(223): error: calling a global function("collect_bucket_indirect") from a device function("launch_sampleselect") is only allowed on the compute_35 architecture or above

sparse/blas/magma_dsampleselect_core.cu(224): error: calling a global function("sampleselect_tailcall") from a device function("launch_sampleselect") is only allowed on the compute_35 architecture or above

7 errors detected in the compilation of "/tmp/tmpxft_00004ed5_00000000-6_magma_dsampleselect_core.cpp1.ii". Makefile:633: recipe for target 'sparse/blas/magma_dsampleselect_core.o' failed make: *** [sparse/blas/magma_dsampleselect_core.o] Error 1

Comments (4)

  1. Mark Gates

    This is a known issue that we are working to resolve. In the meantime, you should be able to compile MAGMA dense (make lib), but not MAGMA sparse (make sparse-lib). Or, if your GPU is newer than CUDA architecture 3.0 (Kepler), set GPU_TARGET to whatever you require, e.g., GPU_TARGET = sm_35 or GPU_TARGET = Maxwell.

  2. nima sahraneshin reporter

    Thanks. I changed the GPU_TARGET and "make & make install" was fine. Now I have a problem with compiling examples files. It seems that it requires " libcublas 8" but I compiled with CUDA 10 which has "libcublas 10". I added CUDA 8 lib to PATH. Now I can compile and run my previous code in magma 2.3 with a correct result but with "segment fault" errors. Lots of dirty work :D sorry.

  3. Mark Gates

    Odd; it should link with whatever cublas you compiled MAGMA with. Everything — magma, examples, and application code — should be compiled with the same version of CUDA.

  4. Log in to comment