Skip to content
This repository has been archived by the owner on Dec 31, 2020. It is now read-only.

CUDA errors #196

Open
GoogleCodeExporter opened this issue Mar 14, 2015 · 1 comment
Open

CUDA errors #196

GoogleCodeExporter opened this issue Mar 14, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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

Attachments:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants