summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSai Praveen Bangaru <31557731+saipraveenb25@users.noreply.github.com>2023-09-23 12:11:45 -0400
committerGitHub <noreply@github.com>2023-09-23 12:11:45 -0400
commitab04bd0dd7dd6a818bbac8c5fef9372c4f597352 (patch)
treed37f49273bc48c55ea3e16a243817907af0ebcbc /tests
parent263f807285c93272abb0c0352be6f8553f01a373 (diff)
More `slangpy` features + polishing (#3233)
* Update user-guide with new slangpy features * More polishing of new slangpy docs * Update a1-02-slangpy.md * Only require contiguity for vector element types * Added `loadOnce/storeOnce` and subscript operations * Added docs, `DiffTensorView.dims()` & `DiffTensorView.stride(uint)` * Add constructors, remove storeOnce/loadOnce test * Adjusted intrinsic definitions
Diffstat (limited to 'tests')
-rw-r--r--tests/autodiff/autopybind-differentiable.slang2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/autodiff/autopybind-differentiable.slang b/tests/autodiff/autopybind-differentiable.slang
index 9595a09d2..27df19b8a 100644
--- a/tests/autodiff/autopybind-differentiable.slang
+++ b/tests/autodiff/autopybind-differentiable.slang
@@ -12,7 +12,7 @@ void myKernel(DiffTensorView inValues, DiffTensorView outValues)
{
if (cudaThreadIdx().x > 0)
return;
- outValues.store(cudaThreadIdx().x, sin(inValues.load(cudaThreadIdx().x)));
+ outValues[cudaThreadIdx().x] = sin(inValues[cudaThreadIdx().x]);
}
// TORCH: {{^SLANG_PRELUDE_EXPORT$}}