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.20.tar.gz (21.6 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.20-py3-none-any.whl (21.7 MB view details)

Uploaded Python 3

File details

Details for the file slangtorch-1.3.20.tar.gz.

File metadata

  • Download URL: slangtorch-1.3.20.tar.gz
  • Upload date:
  • Size: 21.6 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.20.tar.gz
Algorithm Hash digest
SHA256 e3966b426489df77cce691b8d2d475bd5b517a343ac99ab0d798da6b460ce7aa
MD5 fb68650d61a0100cf70726124b0c2c74
BLAKE2b-256 67ea261932a0ff10e9716c3e25780d18316f408ff31b429636d0da6b9806c677

See more details on using hashes here.

Provenance

The following attestation bundles were made for slangtorch-1.3.20.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.20-py3-none-any.whl.

File metadata

  • Download URL: slangtorch-1.3.20-py3-none-any.whl
  • Upload date:
  • Size: 21.7 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.20-py3-none-any.whl
Algorithm Hash digest
SHA256 343c28a07a7881c5dda9e5785da6b907e7dc79a69f8e83f0d9ce973ca6ea7a64
MD5 3bc5b1c76f804d897150bb1b15a9c7b3
BLAKE2b-256 8ef6c8e165d720fd32084d8dab380bf8a87524a14244c3c1059d01329b3d225c

See more details on using hashes here.

Provenance

The following attestation bundles were made for slangtorch-1.3.20-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