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.18.tar.gz (20.3 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.18-py3-none-any.whl (20.4 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: slangtorch-1.3.18.tar.gz
  • Upload date:
  • Size: 20.3 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.18.tar.gz
Algorithm Hash digest
SHA256 fa7df041bd1c0ec4e70bec42525266b9df198dacf4ba6e785cc60674d01f1061
MD5 37b67062840767266947fd4e089b7a90
BLAKE2b-256 7e54b4e5a203f2efa996c5c626de061a99b78bed36fe05c0a853be2c3de2177c

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: slangtorch-1.3.18-py3-none-any.whl
  • Upload date:
  • Size: 20.4 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.18-py3-none-any.whl
Algorithm Hash digest
SHA256 c8ee28d9b99ee39e3517a4df2b1494c290e7bd0d3e0a5e402d3380f327c6d653
MD5 20487d4410f0eb556eaded62c978e86f
BLAKE2b-256 c26f20364d16a9b3ed46b0ddcb3e8e640de59068feabcc11e300b70e68a7e962

See more details on using hashes here.

Provenance

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