{"categories":[{"label":"Artificial Intelligence","url":"https://skillfed.io/packages/category/scientific-engineering-artificial-intelligence/10"}],"enrichment":{"capability":"slangtorch lets you write PyTorch kernels in the Slang shading language, compiling them to run on CUDA-capable GPUs.","skillfed_tags":["gpu-compute","shader-language","pytorch-extension"],"use_cases":["Write custom PyTorch operations in Slang for performance-critical GPU compute tasks.","Integrate existing Slang shaders or compute kernels into a PyTorch training or inference pipeline.","Prototype GPU algorithms using Slang's language features before optimizing further.","Combine graphics and compute workloads by reusing Slang code across PyTorch and graphics applications."],"what_it_does":"slangtorch bridges the Slang shading language and PyTorch, allowing you to write GPU kernels in Slang and call them from Python. Slang is a language designed for graphics and compute shaders; slangtorch compiles Slang code to CUDA and integrates it with PyTorch's tensor operations. This is useful when you need fine-grained control over GPU computation or want to leverage existing Slang code within a PyTorch workflow.\n\nThe package requires external setup: CUDA Toolkit v12.0 or later and PyTorch v2.x built with CUDA support must be installed before slangtorch. It depends on torch, ninja (for build acceleration), filelock, and hatchling. The package is actively maintained and supports Python 3.10 and later on Linux and Windows.","worth_installing":"Yes, if you need to write or integrate Slang-based GPU kernels with PyTorch and have the required CUDA and PyTorch setup. The package is actively maintained, permissively licensed, and has no known vulnerabilities. The main barrier is the external dependency on CUDA Toolkit v12.0+ and PyTorch v2.x with CUDA support; if those are already in your environment, installation is straightforward."},"id":"slangtorch","links":{"html":"https://skillfed.io/packages/slangtorch","md":"https://skillfed.io/packages/slangtorch.md","pypi":"https://pypi.org/project/slangtorch/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-07-31","license_spdx":null,"license_treatment":"permissive","name":"slangtorch","python_support":"supports_current","summary":"A package for calling Slang modules from Python and PyTorch."},"popularity":{"monthly_downloads":92224,"position":13466,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.3.22"}
