ErrorNoBinaryForGPU for CudafyV1.25

Sep 17, 2013 at 12:44 PM
hi,

i have a CUDA supported card as shown below,
deviceQuery.exe Starting...

 CUDA Device Query (Runtime API) version (CUDART static linking)

Detected 1 CUDA Capable device(s)

Device 0: "GeForce 210"
  CUDA Driver Version / Runtime Version          5.5 / 5.5
  CUDA Capability Major/Minor version number:    1.2
  Total amount of global memory:                 512 MBytes (536543232 bytes)
  ( 2) Multiprocessors, (  8) CUDA Cores/MP:     16 CUDA Cores
  GPU Clock rate:                                1402 MHz (1.40 GHz)
  Memory Clock rate:                             500 Mhz
  Memory Bus Width:                              32-bit
  Maximum Texture Dimension Size (x,y,z)         1D=(8192), 2D=(65536, 32768), 3
D=(2048, 2048, 2048)
  Maximum Layered 1D Texture Size, (num) layers  1D=(8192), 512 layers
  Maximum Layered 2D Texture Size, (num) layers  2D=(8192, 8192), 512 layers
  Total amount of constant memory:               65536 bytes
  Total amount of shared memory per block:       16384 bytes
  Total number of registers available per block: 16384
  Warp size:                                     32
  Maximum number of threads per multiprocessor:  1024
  Maximum number of threads per block:           512
  Max dimension size of a thread block (x,y,z): (512, 512, 64)
  Max dimension size of a grid size    (x,y,z): (65535, 65535, 1)
  Maximum memory pitch:                          2147483647 bytes
  Texture alignment:                             256 bytes
  Concurrent copy and kernel execution:          Yes with 1 copy engine(s)
  Run time limit on kernels:                     Yes
  Integrated GPU sharing Host Memory:            No
  Support host page-locked memory mapping:       Yes
  Alignment requirement for Surfaces:            Yes
  Device has ECC support:                        Disabled
  CUDA Device Driver Mode (TCC or WDDM):         WDDM (Windows Display Driver Mo
del)
  Device supports Unified Addressing (UVA):      No
  Device PCI Bus ID / PCI location ID:           1 / 0
  Compute Mode:
     < Default (multiple host threads can use ::cudaSetDevice() with device simu
ltaneously) >

deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 5.5, CUDA Runtime Versi
on = 5.5, NumDevs = 1, Device0 = GeForce 210
Result = PASS
when i run the example i get the following error. Is it possible for me to us the card for computing?
E:\VS2010projects\CudafyV1.25\CudafyByExample\bin\Debug>CudafyByExample.exe
Running examples using GeForce 210

Chapter 3

hello_world
Hello, World!

simple_kernel
sm_12
Cudafy.Host.CudafyHostException: CUDA.NET exception: ErrorNoBinaryForGPU (Ensure
 that compiled architecture version is suitable for device).
   at Cudafy.Host.CudaGPU.HandleCUDAException(CUDAException ex)
   at Cudafy.Host.CudaGPU.LoadModule(CudafyModule module, Boolean unload)
   at CudafyByExample.simple_kernel.Execute() in E:\VS2010projects\CudafyV1.25\C
udafyByExample\chapter03\simple_kernel.cs:line 24
   at CudafyByExample.Program.Main(String[] args) in E:\VS2010projects\CudafyV1.
25\CudafyByExample\Program.cs:line 42
i am using windows XP 32 bit, Visual studio 2010. so... can the card be used for general computing or is this some other error?

thanks
kannan
Sep 17, 2013 at 1:25 PM
ok... found the error.

i had to specify the architecture as sm_12 in CudafyModule km = CudafyTranslator.Cudafy();

can some one please explain as to why this has to be done explicitly?
Coordinator
Sep 18, 2013 at 6:14 PM
Because sm_13 is default if you do not specify explicitly.