public void initOldStream ( ) { // ContextHolder.getInstance().setContext(); if ( oldStream == null ) { oldStreamFromPool = false ; oldStream = new cudaStream_t ( nativeOps . createStream ( ) ) ; //JCuda.cudaStreamCreate(oldStream); specialStream = new cudaStream_t ( nativeOps . createStream ( ) ) ; //JCuda.cudaStreamCreate(specialStream); } }
Initializes the old stream