On my project I’m hoping to use the new thread migration api included with CUDA 2.0 to share a context among threads. The basic functionality seems to work, but I run into problems when I create a CUFFT plan on one thread and execute on another. I’ve modified the attached CUDA 2.0 SDK threadMigration example to include CUFFT planning/execution to duplicate this behaviour.
When I run this example, get a bunch of CUFFT_INVALID_PLAN messages to the output. Am I using this incorrectly, is the CUFFT not designed to support this behavior, or is this a known issue.
I’m running on a x86-64 machine running Ubuntu Linux 7.04, with the CUDA 2.0b2 Toolkit/SDK and the latest 177.13 driver.
threadMigration.cpp (12.6 KB)