grendizerufo / nvidia-texture-tools

Automatically exported from code.google.com/p/nvidia-texture-tools
Other
0 stars 0 forks source link

Problem detecting CUDA properly #83

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Bishonator reports the following problem in the forums:

http://developer.nvidia.com/forums/index.php?showtopic=2488&pid=7876&mode=thread
ed&start=0#entry7876
http://developer.nvidia.com/forums/index.php?showtopic=2488&pid=7879&mode=thread
ed&show=0&st=0#entry7879

Apparently the following code reproduces it:

{

    nvtt::Compressor *c1 = new nvtt::Compressor();
    c1->enableCudaAcceleration(true);
    printf("test: cuda = %s\n", c1->isCudaAccelerationEnabled() ? "true" :
"false");
    delete c1;
}

nvtt::Compressor compressor;
compressor.enableCudaAcceleration(!nocuda);
printf("perf: cuda = %s\n", compressor.isCudaAccelerationEnabled() ? "true"
: "false");

And it outputs to screen:
test: cuda = true
perf: cuda = false

Original issue reported on code.google.com by cast...@gmail.com on 3 Mar 2009 at 9:31

GoogleCodeExporter commented 9 years ago

Original comment by cast...@gmail.com on 18 Mar 2009 at 5:12

GoogleCodeExporter commented 9 years ago
This is fixed in trunk after revision 884 and will be backported to 2.0 shortly.

Original comment by cast...@gmail.com on 18 Mar 2009 at 5:47

GoogleCodeExporter commented 9 years ago
Fixed in 2.0 branch. Closing.

Original comment by cast...@gmail.com on 18 Mar 2009 at 5:53