Closed shivakumar-tekumatla closed 1 year ago
I am trying to run this example program on Google Colab, and I get the following error. I tried to find the solution online but no success sofar. Any idea how to fix this?
LogicError Traceback (most recent call last) [<ipython-input-12-86317df6fc11>](https://localhost:8080/#) in <module> 107 start_time = datetime.datetime.now() 108 print( 'start: ', start_time ) --> 109 kernel = GPy.kern.RBF( input_dim=5, useGPU=True ) 110 111 # initialise pendubot 3 frames [/usr/local/lib/python3.8/dist-packages/paramz/parameterized.py](https://localhost:8080/#) in __call__(self, *args, **kw) 51 #import ipdb;ipdb.set_trace() 52 initialize = kw.pop('initialize', True) ---> 53 self = super(ParametersChangedMeta, self).__call__(*args, **kw) 54 #logger.debug("finished init") 55 self._in_init_ = False [/usr/local/lib/python3.8/dist-packages/GPy/kern/src/rbf.py](https://localhost:8080/#) in __init__(self, input_dim, variance, lengthscale, ARD, active_dims, name, useGPU, inv_l) 24 super(RBF, self).__init__(input_dim, variance, lengthscale, ARD, active_dims, name, useGPU=useGPU) 25 if self.useGPU: ---> 26 self.psicomp = PSICOMP_RBF_GPU() 27 else: 28 self.psicomp = PSICOMP_RBF() [/usr/local/lib/python3.8/dist-packages/GPy/kern/src/psi_comp/rbf_psi_gpucomp.py](https://localhost:8080/#) in __init__(self, threadnum, blocknum, GPU_direct) 245 self.threadnum = threadnum 246 self.blocknum = blocknum --> 247 module = SourceModule("#define THREADNUM "+str(self.threadnum)+"\n"+gpu_code) 248 self.g_psi1computations = module.get_function('psi1computations') 249 self.g_psi1computations.prepare('PPdPPPPiii') [/usr/local/lib/python3.8/dist-packages/pycuda/compiler.py](https://localhost:8080/#) in __init__(self, source, nvcc, options, keep, no_extern_c, arch, code, cache_dir, include_dirs) 367 from pycuda.driver import module_from_buffer 368 --> 369 self.module = module_from_buffer(cubin) 370 371 self._bind_module() LogicError:
Change the runtime type to gpu, it should work !
I am trying to run this example program on Google Colab, and I get the following error. I tried to find the solution online but no success sofar. Any idea how to fix this?