Print message when cuda acceleration enabled.
This commit is contained in:
parent
7f9b10329b
commit
f92a2191f2
@ -494,6 +494,16 @@ int main(int argc, char *argv[])
|
|||||||
nvtt::Compressor compressor;
|
nvtt::Compressor compressor;
|
||||||
compressor.enableCudaAcceleration(!nocuda);
|
compressor.enableCudaAcceleration(!nocuda);
|
||||||
|
|
||||||
|
printf("CUDA acceleration ");
|
||||||
|
if (compressor.isCudaAccelerationEnabled())
|
||||||
|
{
|
||||||
|
printf("ENABLED\n\n");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
printf("DISABLED\n\n");
|
||||||
|
}
|
||||||
|
|
||||||
outputHandler.setTotal(compressor.estimateSize(inputOptions, compressionOptions));
|
outputHandler.setTotal(compressor.estimateSize(inputOptions, compressionOptions));
|
||||||
outputHandler.setDisplayProgress(!silent);
|
outputHandler.setDisplayProgress(!silent);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user