2

I am getting the following error when running the default generated kernel when creating a CUDA project in VS Community:

addKernel launch failed: invalid device function
addWithCuda failed!

I searched for how to solve it, and found out that have to change the Project->Properties->CUDA C/C++->Device->Code Generation(default values for [architecture, code] are compute_20,sm_20), but I couldn't find the values needed for my graphic card (GeForce 8400 GS)

Is there any list on the net for the [architecture, code] or is it possible to get them by any command?

user1090694
  • 609
  • 4
  • 8
  • 16
  • 1
    GeForce 8400 GS is only Compute Capability 1.1. For future reference note that there are quite a few easily searchable lists with this info for all available CUDA GPU boards - make sure you include the term "Compute Capability" in your Google search, – Paul R Feb 11 '15 at 10:34

1 Answers1

10

The numeric value in compute_XX and sm_XX are the Compute Capability (CC) for your CUDA device.

You can lookup this link http://en.wikipedia.org/wiki/CUDA#Supported_GPUs for a (maybe not complete) list of GPUs and there corresponding CC.

Your quite old 8400 GS (when I remember correctly) hosts a G86 chip which supports CC 1.1.

So you have to change to compute_11,sm_11

`

Michael Haidl
  • 5,384
  • 25
  • 43