News for hackers. Stuff that matters.
Re:Fast.ai and why Python is not the future of ML with Jerem... by cdsousa on Thursday September 10, 2020 @04:32AM (#24430140)
""" [...] it is possible to perform kernel-like operations without actually writing your own GPU kernels: a = CUDA.zeros(1024) b = CUDA.ones(1024) a.^2 .+ sin.(b) """ [https://juliagpu.gitlab.io/CUDA.jl/usage/overview/#The-CuArr...]

As far as I know, that example code creates an ad-hoc kernel that performs the computation in a single pass.

I honestly don't know if that is possible in other frameworks.

Re:Fast.ai and why Python is not the future of ML with Jerem... by ummonk on Friday September 11, 2020 @02:21AM (#24439707)
Yeah, that's definitely available in Python frameworks. (I was wrong to mention Numba - I think CuPy would be a better example: https://docs.cupy.dev/en/stable/overview.html)
Re:Fast.ai and why Python is not the future of ML with Jerem... by cdsousa on Friday September 11, 2020 @06:27AM (#24441123)