Problem with compiling Modern GPU library in Nsight Eclipse

Has anybody compiled and run Modern GPU library in Nsight Eclipse. When I compile it in Nsight Eclipse and set all the required compilation parameters, it builds the project, but it gives me a memory exception error during the run. If I compile Modern GPU using make it works perfectly. Do you have any idea?
Thanks