5 ms·
I used ILGPU C# library, where I just wrote my kernel as a regular C# function, and the library executed it on the GPU in parallel. Don't need to know nothin' a
by EVa5I7bHFq9mnYK 3y ago
I used ILGPU C# library, where I just wrote my kernel as a regular C# function, and the library executed it on the GPU in parallel. Don't need to know nothin' about blocks, warps and them other scary stuff. All thanks to C# excellent reflection support.
Learned that computation should be highly local (working on small isolated pieces of data) and without if's, otherwise won't get any performance benefits.