This error might be raised, if you are trying to initialize the CUDA context multiple times, e.g. if you are using multiple processes (via the fork start method) and try to execute CUDA coda as described here 202.