Torch-native RayD geometry and multipath primitives.
Project description
RayD Torch
RayD Torch is a Torch-native CUDA/OptiX package for RayD geometry primitives and RayD-style multipath/diffraction kernels.
import rayd.torch as rt
Install the rayd-torch distribution. It owns only rayd/torch/** and can
coexist with the independently installed rayd-drjit backend.
Tensor ABI
RayD Torch APIs accept CUDA torch.float32 tensors for vector data and CUDA torch.int32 tensors for index data. Vector tensors are row-major (N, 3) unless otherwise documented, masks are torch.bool, and tensors should be contiguous. Outputs and AD tapes are Torch-owned tensors.
Gradient Contract
Intersection, edge, reflection, EPC, and diffraction operators use a fixed-winner gradient contract where explicit native kernels exist. The discrete primitive, edge, visibility, or path decision selected in the forward pass is treated as non-differentiable; VJP and JVP propagate through the continuous values recomputed from the saved winner and live Torch tensors.
Autograd
The native operators support Torch reverse-mode VJP and forward-mode JVP for the supported continuous inputs where explicit kernels have been implemented. CUDA work is launched on the current Torch CUDA stream.
Current Status
RayD Torch now builds separate native scene, edge, reflection, and diffraction Torch extension bindings. The native build includes OptiX PTX pipelines for scene intersection, edge queries, reflection tracing/EPC/visibility/ accumulation, and diffraction path/accumulation/coherent direct execution.
Current opt-in RayD parity tests cover forward cases for scene intersection, multi-mesh global ids, nearest-edge, visibility, reflection tracing, diffraction paths, direct/Keller/suffix diffraction accumulation, order-2 and order-3 diffraction chains, and coherent direct accumulation. Torch VJP/JVP coverage exists for geometry, edge, reflection trace, EPC, and diffraction accumulation under the fixed-winner contract.
On the recorded same-script benchmark shape (grid 64, 4,096 queries, warm
caches), RayD Torch currently measures faster than RayD for scene build,
intersect, nearest edge, reflection trace, diffraction paths, and direct
diffraction accumulation. Far-from-surface nearest-edge queries use a tiled
exact fallback scan instead of the scene-diagonal OptiX tier. Release-size and
Nsight-counter-backed runs remain the broader performance gate. See
docs/torch_gap_analysis.md and docs/torch_performance.md.
Dependencies
RayD Torch depends on PyTorch, CUDA, and OptiX for native execution. The RayD Torch package path has no Dr.Jit dependency.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rayd_torch-0.6.0-cp314-cp314-win_amd64.whl.
File metadata
- Download URL: rayd_torch-0.6.0-cp314-cp314-win_amd64.whl
- Upload date:
- Size: 7.7 MB
- Tags: CPython 3.14, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc89537b4d88ccaae43799ff864a55c0155164612b48f58a0307e7afea543cd6
|
|
| MD5 |
a4ef84596cc1d7a03bff7fd4edaed660
|
|
| BLAKE2b-256 |
ffcbcccf9785c5aafdbc73a0755dff18197ddf7c5f9b9c6efdb10afd91f6b556
|
Provenance
The following attestation bundles were made for rayd_torch-0.6.0-cp314-cp314-win_amd64.whl:
Publisher:
pypi.yml on Asixa/RayD
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rayd_torch-0.6.0-cp314-cp314-win_amd64.whl -
Subject digest:
fc89537b4d88ccaae43799ff864a55c0155164612b48f58a0307e7afea543cd6 - Sigstore transparency entry: 2141468462
- Sigstore integration time:
-
Permalink:
Asixa/RayD@0523e062569d50aefa13f2f91f0bee31a7a4eee8 -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/Asixa
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@0523e062569d50aefa13f2f91f0bee31a7a4eee8 -
Trigger Event:
release
-
Statement type:
File details
Details for the file rayd_torch-0.6.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: rayd_torch-0.6.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 8.0 MB
- Tags: CPython 3.14, manylinux: glibc 2.24+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f7a04b23bbbf9521300764dad55514042a6f17b65d386bda6498f7c63638243
|
|
| MD5 |
2ec8ff7df9618cf8f878ad18d81e5627
|
|
| BLAKE2b-256 |
478f80b4d5f2729d3cf96933291817eaff186520c8db82327d09287214ede826
|
Provenance
The following attestation bundles were made for rayd_torch-0.6.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:
Publisher:
pypi.yml on Asixa/RayD
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rayd_torch-0.6.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl -
Subject digest:
6f7a04b23bbbf9521300764dad55514042a6f17b65d386bda6498f7c63638243 - Sigstore transparency entry: 2141468390
- Sigstore integration time:
-
Permalink:
Asixa/RayD@0523e062569d50aefa13f2f91f0bee31a7a4eee8 -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/Asixa
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@0523e062569d50aefa13f2f91f0bee31a7a4eee8 -
Trigger Event:
release
-
Statement type:
File details
Details for the file rayd_torch-0.6.0-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: rayd_torch-0.6.0-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 7.8 MB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f3b3a5d135c1fcba371fe6ef5cc4aeba160d691cf10e41835634c34ba5f8eed
|
|
| MD5 |
8c30e0bbed921038e5fbe67318a128cd
|
|
| BLAKE2b-256 |
27d6cc62bda856db1bbc89b0ab039131a9017833d76da96646a8fffd7ff3a3f4
|
Provenance
The following attestation bundles were made for rayd_torch-0.6.0-cp313-cp313-win_amd64.whl:
Publisher:
pypi.yml on Asixa/RayD
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rayd_torch-0.6.0-cp313-cp313-win_amd64.whl -
Subject digest:
9f3b3a5d135c1fcba371fe6ef5cc4aeba160d691cf10e41835634c34ba5f8eed - Sigstore transparency entry: 2141468275
- Sigstore integration time:
-
Permalink:
Asixa/RayD@0523e062569d50aefa13f2f91f0bee31a7a4eee8 -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/Asixa
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@0523e062569d50aefa13f2f91f0bee31a7a4eee8 -
Trigger Event:
release
-
Statement type:
File details
Details for the file rayd_torch-0.6.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: rayd_torch-0.6.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 8.0 MB
- Tags: CPython 3.13, manylinux: glibc 2.24+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0f0f7f85bcdf80caae3bd5acbf8491eb8abb8a0970b008795dcaacaeab743cb
|
|
| MD5 |
f593d066cd9b11240d29f20c74803e3f
|
|
| BLAKE2b-256 |
93930757efe62b35e5e415e014875e0751ab5a9c20e2c060358b8c506508f3d3
|
Provenance
The following attestation bundles were made for rayd_torch-0.6.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:
Publisher:
pypi.yml on Asixa/RayD
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rayd_torch-0.6.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl -
Subject digest:
b0f0f7f85bcdf80caae3bd5acbf8491eb8abb8a0970b008795dcaacaeab743cb - Sigstore transparency entry: 2141468350
- Sigstore integration time:
-
Permalink:
Asixa/RayD@0523e062569d50aefa13f2f91f0bee31a7a4eee8 -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/Asixa
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@0523e062569d50aefa13f2f91f0bee31a7a4eee8 -
Trigger Event:
release
-
Statement type:
File details
Details for the file rayd_torch-0.6.0-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: rayd_torch-0.6.0-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 7.8 MB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa0c73615f91e51e796c947a8f39ce94b82ab94fbe5392c5945cf98190b2802b
|
|
| MD5 |
66604e553e217f46d98e7b1951177deb
|
|
| BLAKE2b-256 |
f32841a56e8b1c07f15035a0e3cb663dcc41fd1fb0e45d16b89f675e0b20f062
|
Provenance
The following attestation bundles were made for rayd_torch-0.6.0-cp312-cp312-win_amd64.whl:
Publisher:
pypi.yml on Asixa/RayD
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rayd_torch-0.6.0-cp312-cp312-win_amd64.whl -
Subject digest:
fa0c73615f91e51e796c947a8f39ce94b82ab94fbe5392c5945cf98190b2802b - Sigstore transparency entry: 2141468479
- Sigstore integration time:
-
Permalink:
Asixa/RayD@0523e062569d50aefa13f2f91f0bee31a7a4eee8 -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/Asixa
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@0523e062569d50aefa13f2f91f0bee31a7a4eee8 -
Trigger Event:
release
-
Statement type:
File details
Details for the file rayd_torch-0.6.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: rayd_torch-0.6.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 8.0 MB
- Tags: CPython 3.12, manylinux: glibc 2.24+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e1e62b05f5e9236977bb31b832fdb495c7b68eb90fb117d261d50dcccd6b546
|
|
| MD5 |
07dbb54904124a148b81da68c4de3771
|
|
| BLAKE2b-256 |
0da48832c983d422e28c18d0ef2303412c68e3a0fb155f99dfcb516a036e5118
|
Provenance
The following attestation bundles were made for rayd_torch-0.6.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:
Publisher:
pypi.yml on Asixa/RayD
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rayd_torch-0.6.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl -
Subject digest:
6e1e62b05f5e9236977bb31b832fdb495c7b68eb90fb117d261d50dcccd6b546 - Sigstore transparency entry: 2141468545
- Sigstore integration time:
-
Permalink:
Asixa/RayD@0523e062569d50aefa13f2f91f0bee31a7a4eee8 -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/Asixa
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@0523e062569d50aefa13f2f91f0bee31a7a4eee8 -
Trigger Event:
release
-
Statement type:
File details
Details for the file rayd_torch-0.6.0-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: rayd_torch-0.6.0-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 7.8 MB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05c3594e09e33e0a5bb37e1a4f6c53bc5ef23620b0560a752bb2d1c13c043770
|
|
| MD5 |
4f9cc987e94b1d5f5a863a14096716b5
|
|
| BLAKE2b-256 |
632f373f3c6a8316e4d184bf9eb38c25ec72503adde29f7f2cbe1b38978a5fe5
|
Provenance
The following attestation bundles were made for rayd_torch-0.6.0-cp311-cp311-win_amd64.whl:
Publisher:
pypi.yml on Asixa/RayD
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rayd_torch-0.6.0-cp311-cp311-win_amd64.whl -
Subject digest:
05c3594e09e33e0a5bb37e1a4f6c53bc5ef23620b0560a752bb2d1c13c043770 - Sigstore transparency entry: 2141468290
- Sigstore integration time:
-
Permalink:
Asixa/RayD@0523e062569d50aefa13f2f91f0bee31a7a4eee8 -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/Asixa
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@0523e062569d50aefa13f2f91f0bee31a7a4eee8 -
Trigger Event:
release
-
Statement type:
File details
Details for the file rayd_torch-0.6.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: rayd_torch-0.6.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 8.0 MB
- Tags: CPython 3.11, manylinux: glibc 2.24+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
916d133fff6a855cc63dad38c32710a3fc2e0bf9b95605eb2a6da3c8de8951e1
|
|
| MD5 |
600741c1962dc1ad7300a0c29477f0e7
|
|
| BLAKE2b-256 |
720b15925c4349c6c47fd5dd99eff8ace05f3c99e87a9e5f0524e42a5a2a0693
|
Provenance
The following attestation bundles were made for rayd_torch-0.6.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:
Publisher:
pypi.yml on Asixa/RayD
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rayd_torch-0.6.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl -
Subject digest:
916d133fff6a855cc63dad38c32710a3fc2e0bf9b95605eb2a6da3c8de8951e1 - Sigstore transparency entry: 2141468421
- Sigstore integration time:
-
Permalink:
Asixa/RayD@0523e062569d50aefa13f2f91f0bee31a7a4eee8 -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/Asixa
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@0523e062569d50aefa13f2f91f0bee31a7a4eee8 -
Trigger Event:
release
-
Statement type:
File details
Details for the file rayd_torch-0.6.0-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: rayd_torch-0.6.0-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 7.8 MB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a1b844f6eac440b1ff169d23e914fe5de640d0027d3b36293b80c3f44582790
|
|
| MD5 |
880beeac4440d931efd7bafba9fefcb2
|
|
| BLAKE2b-256 |
d838617ae01be4752c5a1f0a2410660793bbe363825ee44a9c91180f650ffdd1
|
Provenance
The following attestation bundles were made for rayd_torch-0.6.0-cp310-cp310-win_amd64.whl:
Publisher:
pypi.yml on Asixa/RayD
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rayd_torch-0.6.0-cp310-cp310-win_amd64.whl -
Subject digest:
7a1b844f6eac440b1ff169d23e914fe5de640d0027d3b36293b80c3f44582790 - Sigstore transparency entry: 2141468326
- Sigstore integration time:
-
Permalink:
Asixa/RayD@0523e062569d50aefa13f2f91f0bee31a7a4eee8 -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/Asixa
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@0523e062569d50aefa13f2f91f0bee31a7a4eee8 -
Trigger Event:
release
-
Statement type:
File details
Details for the file rayd_torch-0.6.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: rayd_torch-0.6.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 8.0 MB
- Tags: CPython 3.10, manylinux: glibc 2.24+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6326d3e37e5ca31ce3d4c8be8d63f6cf93fe6c9971fe16f17202fcf88f5458fd
|
|
| MD5 |
f37fd8547247a75dd32bc4495f980aad
|
|
| BLAKE2b-256 |
bab9aea88bf6b0a720f4ddb64d9a1ed9d9e74e967f91213e2b8b2d92fc300f33
|
Provenance
The following attestation bundles were made for rayd_torch-0.6.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:
Publisher:
pypi.yml on Asixa/RayD
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rayd_torch-0.6.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl -
Subject digest:
6326d3e37e5ca31ce3d4c8be8d63f6cf93fe6c9971fe16f17202fcf88f5458fd - Sigstore transparency entry: 2141468503
- Sigstore integration time:
-
Permalink:
Asixa/RayD@0523e062569d50aefa13f2f91f0bee31a7a4eee8 -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/Asixa
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@0523e062569d50aefa13f2f91f0bee31a7a4eee8 -
Trigger Event:
release
-
Statement type: