A package for calling Slang modules from Python and PyTorch.
Project description
Slang-Torch Package
This package allows you to use Slang as a language to write PyTorch kernels.
Slang user guide: https://shader-slang.com/slang/user-guide/
slangtorch documentation: https://shader-slang.org/slang/docs/user-guide/a1-02-slangpy
Installation Instructions
Note: Running slangtorch requires a CUDA-capable GPU.
- Install the CUDA Toolkit v12.0 or later
- Install PyTorch v2.x with CUDA support from https://pytorch.org/.
pip install slangtorchto install slangtorch.
Building Wheels Locally
To build the slangtorch package locally, run the build-package-local.sh script.
This will pull the latest Slang binaries and create a wheel for both Linux and Windows.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file slangtorch-1.3.19.tar.gz.
File metadata
- Download URL: slangtorch-1.3.19.tar.gz
- Upload date:
- Size: 21.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7141dc5c8b6af4acc6eaf3f2a17f2eca5320b61cc6c62abd426e0647d115e775
|
|
| MD5 |
15636161b984e066ed2d181f2532502c
|
|
| BLAKE2b-256 |
52cad3cd00226bc622d7edf37face855de85ea1119d0afd5a02d666edf95fbb6
|
Provenance
The following attestation bundles were made for slangtorch-1.3.19.tar.gz:
Publisher:
publish.yml on shader-slang/slang-torch
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
slangtorch-1.3.19.tar.gz -
Subject digest:
7141dc5c8b6af4acc6eaf3f2a17f2eca5320b61cc6c62abd426e0647d115e775 - Sigstore transparency entry: 944282566
- Sigstore integration time:
-
Permalink:
shader-slang/slang-torch@e413eb4438e6d7165f853a14fceba84d2df635ac -
Branch / Tag:
refs/tags/v1.3.19 - Owner: https://github.com/shader-slang
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e413eb4438e6d7165f853a14fceba84d2df635ac -
Trigger Event:
push
-
Statement type:
File details
Details for the file slangtorch-1.3.19-py3-none-any.whl.
File metadata
- Download URL: slangtorch-1.3.19-py3-none-any.whl
- Upload date:
- Size: 21.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe2d70375518144b1618598fe74936d73c7e143243089e9ae8864609e9a3c906
|
|
| MD5 |
c6675b6acca9d4bff545441c2a843628
|
|
| BLAKE2b-256 |
4f647f23b15411a270258bae40270913472396bbde1f490cbbe044898d41392d
|
Provenance
The following attestation bundles were made for slangtorch-1.3.19-py3-none-any.whl:
Publisher:
publish.yml on shader-slang/slang-torch
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
slangtorch-1.3.19-py3-none-any.whl -
Subject digest:
fe2d70375518144b1618598fe74936d73c7e143243089e9ae8864609e9a3c906 - Sigstore transparency entry: 944282623
- Sigstore integration time:
-
Permalink:
shader-slang/slang-torch@e413eb4438e6d7165f853a14fceba84d2df635ac -
Branch / Tag:
refs/tags/v1.3.19 - Owner: https://github.com/shader-slang
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e413eb4438e6d7165f853a14fceba84d2df635ac -
Trigger Event:
push
-
Statement type: