Comments (4)
@m4rs-mt, hi, just saw this. I'm not sure right off the bat but I'll try to get back to you with something soon.
from ilgpu.
Hi @tianmafly, welcome to the ILGPU community. Thank your for submitting this issue. Indeed, the OpenCL accelerator does not support debug assertions and interop output, in general. You can still verify your algorithms using the CPU accelerator by choosing the appropriate virtual device configuration to match your target accelerators. However, we consider supporting those functions in one of the next releases.
from ilgpu.
Hi @tianmafly, welcome to the ILGPU community. Thank your for submitting this issue. Indeed, the OpenCL accelerator does not support debug assertions and interop output. You can still verify your algorithms using the CPU accelerator by choosing the appropriate virtual device configuration to match your target accelerators. However, we consider supporting those functions in one of the next releases.
thank you. But I find this. Does it mean that Debug.Assert can be used with gpu of Opencl?
https://ilgpu.net/docs/03-advanced/06-debugging-and-profiling/
And the interop output of OpenCL is effective,but it has no line breaks.
from ilgpu.
Thanks for your response regarding this topic. It's important to be precise when discussing the implications of supporting certain aspects. ILGPU lowers the Interop.WriteLine
instructions by leveraging the printf
function exposed within OpenCL shader API. However, some drivers may not properly support the printf
function, resulting in no visible output on the command line or poorly formatted strings appearing on the screen.
Regarding Debug.Assert
instructions, it's important to note that ILGPU does not lower these instructions to any counterpart on the OpenCL side due to a lack of proper support for such operations at this time. To ensure clarity and accuracy within our documentation, we should explicitly mention that debug assertions are currently unsupported in OpenCL contexts.
@NullandKale we should properly adapt the documentation to explicitly mention that debug assertions are not supported on OpenCL at the moment.
@kilngod @Yey007 Any idea on how we can support debug assertions on Vulkan?
from ilgpu.
Related Issues (20)
- RNG<XorShift64Star> corrupts data in ArrayView HOT 4
- CUDA tests are broken on .NET 7.0.400 HOT 1
- Compilation fails if there are more than two loops,why ? HOT 28
- System.AccessViolationException when adding useless if statement in kernel HOT 8
- Intel GPUs ,float64 type is not supported on this device HOT 5
- Are vector data types supported? HOT 3
- A Tensor Library HOT 6
- VelocityDevice and MaxGridSize HOT 3
- Sample of "AlgorithmsRadixSort" failed on OpenCL device HOT 4
- `NullReferenceException` when passing empty `ArrayView`s to OpenCL kernel HOT 1
- XMath.Pow() only work on CPU HOT 3
- Better error messages when kernel program failed to run. HOT 1
- Is it possible to use a stored dataset on GPU again and again with throwing extra data to GPU, and even change the value of the established dataset? HOT 1
- Add a CPU-GPU-Shared MemoryBuffer for systems that support it HOT 2
- Iteration of value with loops on GPU slows down significantly HOT 5
- Feature request: cudaStreamWaitEvent HOT 7
- Higher precision float (decimal) support? HOT 2
- Passing Int128 as kernel parameter is not working HOT 3
- System.BadImageFormatException in System.Reflection.Metadata.dll HOT 4
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 ilgpu.