program exit on memory allocation

hi

i am a beginner in programming using CUDA. i have installed CUDA toolkit and sdk and also vs wizard. now when i run a sample program from sdk it gets exit.
when i ran program using breakpoint in cudaOpenMP program i found it gets exit as soon as it execute the following line:

CUDA_SAFE_CALL(cudaMalloc((void**)&d_a, nbytes_per_kernel));

and in reduction program it gets exit on:

cutilSafeCallNoSync(cudaChooseDevice(&dev, &deviceProp));

please help me so that i can test the sample and start my project…

thanks

Akhshay Gandhi

what’s the error code like? you should probably post in programming and development; there’s more activity there.

it simply says…native exited with code 1 (0x1)

i will put this on programming and development…

thanks :)