Alex Gao
Alex Gao

Reputation: 2081

nvcc -arch sm_52 gives error "Value 'sm_52' is not defined for option 'gpu-architecture'"

I updated my cuda toolkit from 5.5 to 6.5. Then following command

nvcc -arch=sm_52

starts to give me an error

nvcc fatal   : Value 'sm_52' is not defined for option 'gpu-architecture'

Is this a bug ? or nvcc 6.5 does not support Maxwell virtual architecture.

Upvotes: 4

Views: 2717

Answers (1)

sgarizvi
sgarizvi

Reputation: 16796

CUDA Toolkit 6.5 was released before sm_52 architecture came into production.

After the arrival of sm_52 architecture, an update to CUDA 6.5 was released which enabled nvcc to generate code for sm_52.

Make sure you download the newer version of CUDA Toolkit 6.5.

P.S: I would rather use the latest version of toolkit (currently 7.0).

Upvotes: 6

Related Questions