Expand description
C++ Extension utilities for ToRSh
This module provides utilities for building C++ extensions that integrate with the ToRSh framework, similar to PyTorch’s cpp_extension module.
Structs§
- Build
Result - Build result containing the path to the compiled extension
- CppExtension
Config - Configuration for building a C++ extension
- Cross
Platform Config - Cross-platform build configuration
- Cuda
Device Info - CUDA device information
- Cuda
JitInfo - CUDA JIT compilation information
- Cuda
Kernel Compilation Options - Advanced CUDA kernel compilation options
- Cuda
Launch Config - CUDA kernel launch configuration
- Custom
OpDefinition - Custom operation definition
- JitBuild
Info - JIT compilation build information
- JitCompilation
Config - JIT compilation configuration
- Linux
Config - Linux-specific build configuration
- MacOs
Config - macOS-specific build configuration
- OpSchema
- Operation schema for validation and optimization
- Runtime
Cuda Kernel - Runtime CUDA kernel management
- Tensor
Type - Tensor type information
- Windows
Config - Windows-specific build configuration
Enums§
- Compiler
Preference - Compiler preference on Linux
- Custom
OpType - Custom operation type
- Memory
Requirement - Memory requirement estimation
- Target
Platform - Target platform specification
Functions§
- auto_
tune_ cuda_ kernel - Auto-tune CUDA kernel launch parameters
- build_
cpp_ extension - Build a C++ extension
- compile_
cuda_ kernel_ runtime - Compile CUDA kernel at runtime
- cuda_
is_ available - Check if CUDA is available for building extensions
- generate_
extension_ template - Generate a simple C++ extension template
- get_
cuda_ arch_ list - Get CUDA architectures available on the system
- launch_
cuda_ kernel - Launch a runtime-compiled CUDA kernel
- load_
cpp_ extension - Load a C++ extension from a shared library