-3

While running the program to add two simple matrix I get following error

CUDA runtime error: CUDA driver version is insufficient for CUDA runtime version (35) in magma_getdevice at interface_cuda/interface.cpp:547 Error: magmablasGetQueue requires magma_init() to be called first for MAGMA v1 compatability.

I have checked the other programs like sparse matrix calculation or eigen values functions are working but getting problem in Adding two matrices. I have also used magma_init() mentioned in error. Using following function.

magma_smalloc_cpu(&patterns, patternn2);
magma_smalloc_cpu(&onesmat, patterncols);
magma_smalloc_cpu(&col_mean, patternrows);
magma_smalloc_cpu(&meanmultiplier, patternn2);

// Values are assigned to each matrix and checked using loop its working

magmablas_sgeadd2(patternrows,patterncols,alpha,patterns,patternrows,beta,meanmultiplier,patternrows);

I am usng Cuda 7.5 version with magma 2.0.

If any one have idea about the error please answer, it would be really helpful for me to solve it.

talonmies
  • 70,661
  • 34
  • 192
  • 269
Aafaque Abdullah
  • 361
  • 3
  • 13

1 Answers1

1

Please read the error provided. Error messages were created to enable the compiler to complain about the error and potentially provide a possible solution.

CUDA driver version is insufficient for CUDA runtime version

That's it. According to this message, our CUDA driver is outdated and (here's a hidden potential solution) you should upgrade it.

Why? Because CUDA runtime uses some features of the newer driver, that the one you have doesn't support.

ForceBru
  • 43,482
  • 10
  • 63
  • 98
  • Thanks @ForceBru , I think i have updated Cuda version 7.5 , but I think I have not checked the Cuda driver. I will check again and try to upgrade it thanks. – Aafaque Abdullah Oct 25 '16 at 17:34