You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(venv) C:\tut\test>python minimal_triton_test.py
x tensor([ 0.5207, -0.5088, 0.3553, ..., -0.6845, -1.1242, 1.4335],
device='cuda:0')
y tensor([ 0.7515, -1.2655, -0.7590, ..., 0.3353, -0.9994, -2.0269],
device='cuda:0')
tensor([0., 0., 0., ..., 0., 0., 0.], device='cuda:0')
Traceback (most recent call last):
File "C:\tut\test\minimal_triton_test.py", line 27, in <module>
main()
File "C:\tut\test\minimal_triton_test.py", line 22, in main
add_kernel[grid](x, y, output, n)
File "C:\tut\test\venv\lib\site-packages\triton\runtime\jit.py", line 166, in <lambda>
return lambda *args, **kwargs: self.run(grid=grid, warmup=False, *args, **kwargs)
File "C:\tut\test\venv\lib\site-packages\triton\runtime\jit.py", line 348, in run
device = driver.get_current_device()
File "C:\tut\test\venv\lib\site-packages\triton\runtime\driver.py", line 230, in __getattr__
self._initialize_obj()
File "C:\tut\test\venv\lib\site-packages\triton\runtime\driver.py", line 227, in _initialize_obj
self._obj = self._init_fn()
File "C:\tut\test\venv\lib\site-packages\triton\runtime\driver.py", line 260, in initialize_driver
return CudaDriver()
File "C:\tut\test\venv\lib\site-packages\triton\runtime\driver.py", line 122, in __init__
self.utils = CudaUtils()
File "C:\tut\test\venv\lib\site-packages\triton\runtime\driver.py", line 69, in __init__
so = _build("cuda_utils", src_path, tmpdir)
File "C:\tut\test\venv\lib\site-packages\triton\common\build.py", line 124, in _build
ret = subprocess.check_call(cc_cmd)
File "C:\Program Files\Python310\lib\subprocess.py", line 364, in check_call
retcode = call(*popenargs, **kwargs)
File "C:\Program Files\Python310\lib\subprocess.py", line 345, in call
with Popen(*popenargs, **kwargs) as p:
File "C:\Program Files\Python310\lib\subprocess.py", line 969, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Program Files\Python310\lib\subprocess.py", line 1438, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
PermissionError: [WinError 5] Access is denied
minimal_triton_test.py
import triton
import triton.language as tl
import torch
@triton.jit
def add_kernel(x_ptr, y_ptr, output_ptr, n):
pid = tl.program_id(0)
x = tl.load(x_ptr + pid)
y = tl.load(y_ptr + pid)
output = x + y
tl.store(output_ptr + pid, output)
def main():
n = 1024
x = torch.randn(n, device='cuda')
y = torch.randn(n, device='cuda')
output = torch.empty_like(x)
print("x", x)
print("y", y)
print(output)
grid = lambda meta: (n,)
add_kernel[grid](x, y, output, n)
print("Kernel executed successfully")
if __name__ == "__main__":
main()
I tried creating env using conda and python. tried launching command prompt as Run as administrator
The text was updated successfully, but these errors were encountered:
I have Windows 11. Installed Triton using triton-2.1.0-cp310-cp310-win_amd64.whl.
Environment details
minimal_triton_test.py
I tried creating env using conda and python. tried launching command prompt as Run as administrator
The text was updated successfully, but these errors were encountered: