-
Notifications
You must be signed in to change notification settings - Fork 98
Open
Labels
bugstatus: waiting-for-feedbackMaintainer is blocker and waiting for user feedbackMaintainer is blocker and waiting for user feedback
Description
Version
1.0.0
Version
13.1
Which installation method(s) does this occur on?
No response
Describe the bug.
when i run the vector_add demo, it report errors, and seem like some compile error.
Minimum reproducible example
"""
Example demonstrating simple vector addition.
Shows how to perform elementwise operations on vectors.
"""
import cupy as cp
import numpy as np
import cuda.tile as ct
@ct.kernel
def vector_add(a, b, c, tile_size: ct.Constant[int]):
# Get the 1D pid
pid = ct.bid(0)
# Load input tiles
a_tile = ct.load(a, index=(pid,), shape=(tile_size,))
b_tile = ct.load(b, index=(pid,), shape=(tile_size,))
# Perform elementwise addition
result = a_tile + b_tile
# Store result
ct.store(c, index=(pid, ), tile=result)
def test():
# Create input data
vector_size = 2**12
tile_size = 2**4
grid = (ct.cdiv(vector_size, tile_size), 1, 1)
a = cp.random.uniform(-1, 1, vector_size)
b = cp.random.uniform(-1, 1, vector_size)
c = cp.zeros_like(a)
# Launch kernel
ct.launch(cp.cuda.get_current_stream(),
grid, # 1D grid of processors
vector_add,
(a, b, c, tile_size))
# Copy to host only to compare
a_np = cp.asnumpy(a)
b_np = cp.asnumpy(b)
c_np = cp.asnumpy(c)
# Verify results
expected = a_np + b_np
np.testing.assert_array_almost_equal(c_np, expected)
print("✓ vector_add_example passed!")
if __name__ == "__main__":
test()Relevant log output
Traceback (most recent call last):
File "/home/www/Downloads/enter/envs/py311_cu131/lib/python3.11/site-packages/cuda/tile/_compile.py", line 364, in compile_cubin
subprocess.run(command + flags, env=env, check=True, capture_output=True,
File "/home/www/Downloads/enter/envs/py311_cu131/lib/python3.11/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/home/www/Downloads/enter/envs/py311_cu131/bin/tileiras', '/tmp/tmp79yb8w6y/vector_add093vzxs7.bytecode', '-o', '/tmp/tmp79yb8w6y/vector_add093vzxs7.cubin', '--gpu-name', 'sm_120', '-O3', '--lineinfo']' died with <Signals.SIGSEGV: 11>.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/www/python_proj/cutile/cutile_demo1/main.py", line 56, in <module>
test()
File "/home/www/python_proj/cutile/cutile_demo1/main.py", line 38, in test
ct.launch(cp.cuda.get_current_stream(),
File "/home/www/Downloads/enter/envs/py311_cu131/lib/python3.11/site-packages/cuda/tile/_compile.py", line 225, in __call__
lib = compile_tile(self.pyfunc, pyfunc_args, self.compiler_options, tile_context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/www/Downloads/enter/envs/py311_cu131/lib/python3.11/site-packages/cuda/tile/_compile.py", line 70, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/www/Downloads/enter/envs/py311_cu131/lib/python3.11/site-packages/cuda/tile/_compile.py", line 213, in compile_tile
raise e
File "/home/www/Downloads/enter/envs/py311_cu131/lib/python3.11/site-packages/cuda/tile/_compile.py", line 206, in compile_tile
cubin_file = compile_cubin(f.name, compiler_options, sm_arch,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/www/Downloads/enter/envs/py311_cu131/lib/python3.11/site-packages/cuda/tile/_compile.py", line 367, in compile_cubin
raise TileCompilerExecutionError(e.returncode, e.stderr.decode(), ' '.join(flags),
cuda.tile._exception.TileCompilerExecutionError: Return code -11
Unknown locationFull env printout
***OS Information***
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.5 LTS"
PRETTY_NAME="Ubuntu 22.04.5 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.5 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
Linux www-MS-7D76 6.8.0-90-generic #91~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 20 15:20:45 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
***GPU Information***
Sat Jan 10 13:34:18 2026
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 580.95.05 Driver Version: 580.95.05 CUDA Version: 13.0 |
+-----------------------------------------+------------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA GeForce RTX 5070 Ti Off | 00000000:01:00.0 Off | N/A |
| 0% 29C P8 13W / 300W | 15MiB / 16303MiB | 0% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| 0 N/A N/A 1363 G /usr/lib/xorg/Xorg 4MiB |
+-----------------------------------------------------------------------------------------+
***g++***
/usr/bin/g++
g++ (Ubuntu 11.4.0-1ubuntu1~22.04.2) 11.4.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
***nvcc***
/home/www/Downloads/enter/envs/py311_cu131/bin/nvcc
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2025 NVIDIA Corporation
Built on Fri_Nov__7_07:23:37_PM_PST_2025
Cuda compilation tools, release 13.1, V13.1.80
Build cuda_13.1.r13.1/compiler.36836380_0
***Python***
/home/www/Downloads/enter/envs/py311_cu131/bin/python
Python 3.11.14Other/Misc.
No response
Contributing Guidelines
- I agree to follow cuTile Python's contributing guidelines
- I have searched the open bugs and have found no duplicates for this bug report
Metadata
Metadata
Assignees
Labels
bugstatus: waiting-for-feedbackMaintainer is blocker and waiting for user feedbackMaintainer is blocker and waiting for user feedback