You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 31, 2020. It is now read-only.
I have noticed some strange behavior of nvtt compessor when using CUDA and
threading.
I have a wrapper class for batch file compression (attached), when compression
is called from main thread everything fine, but UI frozen. So I decided to run
compressing in separate thread. In Qt framework I used QtConcurrent::run for
this, but get many CUDA errors. Most interesting that
compressor.process(inputOptions, compressionOptions, outputOptions);
returns true despite of errors.
Disabling GPU acceleration by
compressor.enableCudaAcceleration(false);
removes any errors.
void MainWindow::on_selectFolderButton_clicked()
{
ui->progressBar->setValue( 0 );
QString dirPath = QFileDialog::getExistingDirectory( this, tr("Open directory"), "" );
if ( dirPath .isNull() )
return;
QDir dir( dirPath );
QFutureWatcher<void>* w = new QFutureWatcher<void>();
connect( w, SIGNAL(finished()), this, SLOT(convertFinished()) );
connect( w, SIGNAL(finished()), w, SLOT( deleteLater() ) );
mConverter.setMaxSize( ui->maxSizeEdit->text().toInt() );
// mConverter.compressFolder( dir ); // <------------ Okay
QFuture<void> f = QtConcurrent::run(&mConverter, &TextureConverter::compressFolder, dir ); // <---- CUDA error
w->setFuture( f );
}
Original issue reported on code.google.com by [email protected] on 6 Aug 2013 at 1:47
Original issue reported on code.google.com by
[email protected]
on 6 Aug 2013 at 1:47Attachments:
The text was updated successfully, but these errors were encountered: