Comments (1)
Hi, @Riga27527
The DSL variables are created on the device and thus cannot be directly visited by the host code. To retrieve their values, generally, you would need to write them to a buffer, download it to a host memory, and then visit the host-side copy.
To make the process easier, we also provide a Printer
class in LuisaCompute to help inspect kernel variables. A use case can be found here.
from luisarender.
Related Issues (20)
- Allocation fail warnings with Metal backend HOT 2
- 无法打开输入文件“..\base\Release\luisa-render-base.lib” HOT 3
- How to prevent recompiling kernel for randomized input? HOT 2
- Dispatch refactor of materials/lights/... for shorter shader compilation time HOT 1
- error: could not compile `luisa_compute_backend_impl` due to 5 previous errors; [ 51%] Built target _cargo-build_luisa_compute_ir HOT 3
- -- Checking for module 'zzip-zlib-config' -- No package 'zzip-zlib-config' found HOT 5
- ZipArchiveIOSystem.cpp:99:12: error: ‘voidpf’ does not name a type; did you mean ‘void’? HOT 5
- Shader 'kernel_73b038d546fe000a.ptx' is not found in cache. The shader will be recompiled. HOT 9
- [error] CUDA_ERROR_OUT_OF_MEMORY: out of memory HOT 2
- Save save GPT HOT 2
- Falling back to ad-hoc allocation HOT 2
- Dirac Delta handling HOT 1
- Compiling error "reference to local binding 'basis' declared in enclosing function 'luisa::compute::metal::MetalCurve::build'" HOT 4
- Running "luisa-render-cli" on Windows prints / renders nothing, "luisa-render-cli.exe" works fine though. HOT 4
- 你好 有可以测试的代码吗,python接口支持好像没开始做 HOT 1
- Windows build fails with type inference errors in aov.cpp and gpt.cpp due to return type of camera->film()->node()->exposure(); HOT 5
- Is there a full version without "--recursive"? HOT 2
- CMake Generate step failed on MacOS 13.1(M1 Pro) HOT 8
- Failed to build luisa-render-util due to std::endian HOT 8
- Is there any documentation for this project? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from luisarender.