Пример #1
0
    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
def _get_univcaller_code():
    # For univariate pdfs
    path = os.path.join(get_cufiles_path(), 'univcaller.cu')
    return open(path).read()
Пример #6
0
def _get_mvcaller_code():
    # for multivariate pdfs
    path = os.path.join(get_cufiles_path(), 'mvcaller.cu')
    return open(path).read()
Пример #7
0
def _get_support_code():
    path = os.path.join(get_cufiles_path(), 'support.cu')
    return open(path).read()
Пример #8
0
    def __init__(self, name, filepath):
        self.full_path = os.path.join(get_cufiles_path(), filepath)

        Kernel.__init__(self, name)