CUDA 4.0 cudaSetDevice Failure only for the first time

After installation of CUDA 4.0 Driver for 64-bit Linux, I ran multipe instances of my test application. All but one application failed in “cudaSetDevice”… But subsequently I am not able to reproduce this problem. Looks strange…