linker directives. Default: environment variable "CUDA_ROOT" or else "AUTO". """, StrParam(os.getenv('CUDA_ROOT', "AUTO"))) AddConfigVar( 'pycuda.init', """If True, always initialize PyCUDA when Theano want to initilize the GPU. Currently, we must always initialize PyCUDA before Theano do it. Setting this flag to True, ensure that, but always import PyCUDA. It can be done manually by importing theano.misc.pycuda_init before theano initialize the GPU device. """, BoolParam(False)) if config.cuda.root == "AUTO": # set nvcc_path correctly and get the version nvcc_compiler.set_cuda_root() #is_nvcc_available called here to initialize global vars in #nvcc_compiler module nvcc_compiler.is_nvcc_available() # Compile cuda_ndarray.cu # This need that nvcc (part of cuda) is installed. If it is not, a warning is # printed and this module will not be working properly (we set `cuda_available` # to False). # This variable is True by default, and set to False if nvcc is not # available or their is no cuda card or something goes wrong when # trying to initialize cuda. cuda_available = True
""", StrParam(os.getenv('CUDA_ROOT', "AUTO"))) AddConfigVar('pycuda.init', """If True, always initialize PyCUDA when Theano want to initilize the GPU. Currently, we must always initialize PyCUDA before Theano do it. Setting this flag to True, ensure that, but always import PyCUDA. It can be done manually by importing theano.misc.pycuda_init before theano initialize the GPU device. """, BoolParam(False)) if config.cuda.root == "AUTO": # set nvcc_path correctly and get the version nvcc_compiler.set_cuda_root() #is_nvcc_available called here to initialize global vars in #nvcc_compiler module nvcc_compiler.is_nvcc_available() # Compile cuda_ndarray.cu # This need that nvcc (part of cuda) is installed. If it is not, a warning is # printed and this module will not be working properly (we set `cuda_available` # to False). # This variable is True by default, and set to False if nvcc is not # available or their is no cuda card or something goes wrong when # trying to initialize cuda. cuda_available = True