Skip to main content

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 slangtorch to 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

slangtorch-1.3.19.tar.gz (21.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

slangtorch-1.3.19-py3-none-any.whl (21.3 MB view details)

Uploaded Python 3

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

Hashes for slangtorch-1.3.19.tar.gz
Algorithm Hash digest
SHA256 7141dc5c8b6af4acc6eaf3f2a17f2eca5320b61cc6c62abd426e0647d115e775
MD5 15636161b984e066ed2d181f2532502c
BLAKE2b-256 52cad3cd00226bc622d7edf37face855de85ea1119d0afd5a02d666edf95fbb6

See more details on using hashes here.

Provenance

The following attestation bundles were made for slangtorch-1.3.19.tar.gz:

Publisher: publish.yml on shader-slang/slang-torch

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for slangtorch-1.3.19-py3-none-any.whl
Algorithm Hash digest
SHA256 fe2d70375518144b1618598fe74936d73c7e143243089e9ae8864609e9a3c906
MD5 c6675b6acca9d4bff545441c2a843628
BLAKE2b-256 4f647f23b15411a270258bae40270913472396bbde1f490cbbe044898d41392d

See more details on using hashes here.

Provenance

The following attestation bundles were made for slangtorch-1.3.19-py3-none-any.whl:

Publisher: publish.yml on shader-slang/slang-torch

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page