Menu

some errors when compiling blas3.cu

Jacky Chen
2013-08-29
2013-08-30
  • Jacky Chen

    Jacky Chen - 2013-08-29

    Hi,
    I encountered these errors when compiling the blas3.cu

    /usr/include/viennacl/linalg/cuda/scalar_operations.hpp(96): error: kernel launches from templates are not allowed in system files

    /usr/include/viennacl/linalg/cuda/scalar_operations.hpp(220): error: kernel launches from templates are not allowed in system files

    /usr/include/viennacl/linalg/cuda/scalar_operations.hpp(348): error: kernel launches from templates are not allowed in system files
    .
    .
    .
    71 errors detected in the compilation of "/tmp/tmpxft_00003278_00000000-4_blas3.cpp4.ii".

    I am a beginner using the ViennaCL and I don't know how to deal with the errors.
    Is there any instruction I can follow?

    Thanks.

     
  • Karl Rupp

    Karl Rupp - 2013-08-30

    This has to do with the location of the ViennaCL include files and some restrictions inside the CUDA compiler.
    If you need the CUDA backend, please copy the /usr/include/viennacl folder into your project directory, this should fix the problem.

     

Log in to post a comment.