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.21.tar.gz (30.4 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.21-py3-none-any.whl (30.5 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: slangtorch-1.3.21.tar.gz
  • Upload date:
  • Size: 30.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for slangtorch-1.3.21.tar.gz
Algorithm Hash digest
SHA256 fdeaf5eae31e1772e5dc4298ecccddad1c2abe0868a3c636ed4dc935d47b9ce9
MD5 93ef5f8068f84178d26a139539cfb82f
BLAKE2b-256 921c660494d1d17200deacdea9f708e38bf1196846699d21915caac586ce89a8

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: slangtorch-1.3.21-py3-none-any.whl
  • Upload date:
  • Size: 30.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for slangtorch-1.3.21-py3-none-any.whl
Algorithm Hash digest
SHA256 8b66c41dad845e309b717935ad8660b73a17c3a6f17b881a19bfa42ba41e5b57
MD5 c48b1f3fdaab113847b9998f96e9bbb7
BLAKE2b-256 ef60e9d24189f179ce1cca391b3d20552c7ae24c1b1984d54764fd4b12f6f0a6

See more details on using hashes here.

Provenance

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