nvvm.py 475 Bytes
Newer Older
dugupeiwen's avatar
dugupeiwen committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
'''
NVVM is not supported in the simulator, but stubs are provided to allow tests
to import correctly.
'''


class NvvmSupportError(ImportError):
    pass


class NVVM(object):
    def __init__(self):
        raise NvvmSupportError('NVVM not supported in the simulator')


CompilationUnit = None
llvm_to_ptx = None
set_cuda_kernel = None
get_arch_option = None
LibDevice = None
NvvmError = None


def is_available():
    return False


def get_supported_ccs():
    return ()