예제 #1
0
파일: codegen.py 프로젝트: whitews/gpustats
    def __init__(self, name, file_path):
        self.full_path = os.path.join(
            get_cufiles_path(),
            file_path
        )

        Kernel.__init__(self, name)
예제 #2
0
def _get_univcaller_code():
    # For univariate pdfs
    path = os.path.join(get_cufiles_path(), 'univcaller.cu')
    return open(path).read()
예제 #3
0
def _get_mvcaller_code():
    # for multivariate pdfs
    path = os.path.join(get_cufiles_path(), 'mvcaller.cu')
    return open(path).read()
예제 #4
0
def _get_support_code():
    path = os.path.join(get_cufiles_path(), 'support.cu')
    return open(path).read()
예제 #5
0
파일: codegen.py 프로젝트: xiangze/gpustats
def _get_univcaller_code():
    # For univariate pdfs
    path = os.path.join(get_cufiles_path(), 'univcaller.cu')
    return open(path).read()
예제 #6
0
파일: codegen.py 프로젝트: xiangze/gpustats
def _get_mvcaller_code():
    # for multivariate pdfs
    path = os.path.join(get_cufiles_path(), 'mvcaller.cu')
    return open(path).read()
예제 #7
0
파일: codegen.py 프로젝트: xiangze/gpustats
def _get_support_code():
    path = os.path.join(get_cufiles_path(), 'support.cu')
    return open(path).read()
예제 #8
0
파일: codegen.py 프로젝트: xiangze/gpustats
    def __init__(self, name, filepath):
        self.full_path = os.path.join(get_cufiles_path(), filepath)

        Kernel.__init__(self, name)