tilelang.carver.arch.driver.cuda_driver¶
Classes¶
Functions¶
|
|
|
|
|
|
|
|
|
Get the maximum dynamic shared memory size in bytes, kilobytes, or megabytes. |
|
|
|
Get the number of streaming multiprocessors (SMs) on the CUDA device. |
|
Module Contents¶
- class tilelang.carver.arch.driver.cuda_driver.cudaDeviceProp¶
Bases:
ctypes.Structure
- tilelang.carver.arch.driver.cuda_driver.get_cuda_device_properties(device_id=0)¶
- Parameters:
device_id (int)
- Return type:
Optional[cudaDeviceProp]
- tilelang.carver.arch.driver.cuda_driver.get_device_name(device_id=0)¶
- Parameters:
device_id (int)
- Return type:
Optional[str]
- Parameters:
device_id (int)
format (str)
- Return type:
Optional[int]
- tilelang.carver.arch.driver.cuda_driver.get_device_attribute(attr, device_id=0)¶
- Parameters:
attr (int)
device_id (int)
- Return type:
int
Get the maximum dynamic shared memory size in bytes, kilobytes, or megabytes.
- Parameters:
device_id (int)
format (str)
- Return type:
Optional[int]
- tilelang.carver.arch.driver.cuda_driver.get_persisting_l2_cache_max_size(device_id=0)¶
- Parameters:
device_id (int)
- Return type:
int
- tilelang.carver.arch.driver.cuda_driver.get_num_sms(device_id=0)¶
Get the number of streaming multiprocessors (SMs) on the CUDA device.
- Parameters:
device_id (int, optional) – The CUDA device ID. Defaults to 0.
- Returns:
The number of SMs on the device.
- Return type:
int
- Raises:
RuntimeError – If unable to get the device properties.
- tilelang.carver.arch.driver.cuda_driver.get_registers_per_block(device_id=0)¶
- Parameters:
device_id (int)
- Return type:
int