However, I checked the given instructions and everything seems to be fine. My Cuda toolkit version is in fact 4.2 and system path is pointing to the right folder. And the dll does exist in the valid folder.

I am considering if I should reinstall the whole environment.

If you have any other suggestions I would be grateful :).

And to be more precise the exception pops during the creation of GPGPUBLAS.Create(gpu) method.

Can any one confirm if I can do this in VS2012. Im having a problem doing some simple tests. Like calling one of the rand functions from the cudafybyexample project. It crashes completely. kkc0923, can you please help.

This software is based upon the book CUDA By Example by Sanders and Kandrot

and source code provided by NVIDIA Corporation.

It is a good idea to read the book while studying the examples!
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Cudafy;
using Cudafy.Host;
using Cudafy.Maths.RAND;
using Cudafy.Translator;