mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-04-30 07:16:23 +02:00
fix gpu initialziation
This commit is contained in:
parent
a77a675549
commit
3917d9cdba
2 changed files with 2 additions and 1 deletions
|
|
@ -237,6 +237,7 @@ class PSICOMP_RBF_GPU(PSICOMP_RBF):
|
||||||
self.fall_back = PSICOMP_RBF()
|
self.fall_back = PSICOMP_RBF()
|
||||||
|
|
||||||
from pycuda.compiler import SourceModule
|
from pycuda.compiler import SourceModule
|
||||||
|
import GPy.util.gpu_init
|
||||||
|
|
||||||
self.GPU_direct = GPU_direct
|
self.GPU_direct = GPU_direct
|
||||||
self.gpuCache = None
|
self.gpuCache = None
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@ import numpy as np
|
||||||
from paramz.caching import Cache_this
|
from paramz.caching import Cache_this
|
||||||
from . import PSICOMP_RBF
|
from . import PSICOMP_RBF
|
||||||
|
|
||||||
|
|
||||||
gpu_code = """
|
gpu_code = """
|
||||||
// define THREADNUM
|
// define THREADNUM
|
||||||
|
|
||||||
|
|
@ -287,6 +286,7 @@ class PSICOMP_SSRBF_GPU(PSICOMP_RBF):
|
||||||
def __init__(self, threadnum=128, blocknum=15, GPU_direct=False):
|
def __init__(self, threadnum=128, blocknum=15, GPU_direct=False):
|
||||||
|
|
||||||
from pycuda.compiler import SourceModule
|
from pycuda.compiler import SourceModule
|
||||||
|
import GPy.util.gpu_init
|
||||||
|
|
||||||
self.GPU_direct = GPU_direct
|
self.GPU_direct = GPU_direct
|
||||||
self.gpuCache = None
|
self.gpuCache = None
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue