Cuda compiler not working with GCC 4.5 +

前端 未结 5 1356
野性不改
野性不改 2020-12-21 12:55

I am new to Cuda, and I am trying to compile this simple test_1.cu file:

#include 

__global__ void kernel(void)
{
}

int main (v         


        
5条回答
  •  悲哀的现实
    2020-12-21 13:24

    Reference: I update my gcc from 4.4 to 4.6. Then I could not use nvcc to compile my code. Luckily, by using the method provided by the following link. I set my default gcc compiler back to gcc 4.4. Now, I could compile file using either gcc4.4 or gcc4.6. quit cool http://ubuntuguide.net/how-to-install-and-setup-gcc-4-1g4-1-in-ubuntu-10-0410-10

提交回复
热议问题