First commit
This commit is contained in:
3
pkgs/triton/language/extra/__init__.py
Normal file
3
pkgs/triton/language/extra/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from . import cuda
|
||||
|
||||
__all__ = ['cuda']
|
||||
BIN
pkgs/triton/language/extra/__pycache__/__init__.cpython-310.pyc
Normal file
BIN
pkgs/triton/language/extra/__pycache__/__init__.cpython-310.pyc
Normal file
Binary file not shown.
BIN
pkgs/triton/language/extra/__pycache__/cuda.cpython-310.pyc
Normal file
BIN
pkgs/triton/language/extra/__pycache__/cuda.cpython-310.pyc
Normal file
Binary file not shown.
BIN
pkgs/triton/language/extra/cuda.bc
Normal file
BIN
pkgs/triton/language/extra/cuda.bc
Normal file
Binary file not shown.
19
pkgs/triton/language/extra/cuda.py
Normal file
19
pkgs/triton/language/extra/cuda.py
Normal file
@@ -0,0 +1,19 @@
|
||||
import os
|
||||
|
||||
from .. import core
|
||||
|
||||
__path__ = os.path.dirname(os.path.abspath(__file__))
|
||||
|
||||
|
||||
@core.extern
|
||||
def globaltimer(_builder=None):
|
||||
return core.extern_elementwise("cuda", os.path.join(__path__, "cuda.bc"), [],
|
||||
{tuple(): ("globaltimer", core.dtype("int64")),
|
||||
}, is_pure=False, _builder=_builder)
|
||||
|
||||
|
||||
@core.extern
|
||||
def smid(_builder=None):
|
||||
return core.extern_elementwise("cuda", os.path.join(__path__, "cuda.bc"), [],
|
||||
{tuple(): ("smid", core.dtype("int32")),
|
||||
}, is_pure=True, _builder=_builder)
|
||||
Reference in New Issue
Block a user