diku-dk / futhark

:boom::computer::boom: A data-parallel functional programming language
http://futhark-lang.org
ISC License
2.4k stars 167 forks source link

Any chance of cuBLAS acceleration in CUDA backend? #1429

Open JoshuaJakowlew opened 3 years ago

JoshuaJakowlew commented 3 years ago

As a total newbie, I'm curious about the language, but the main key for me is perfomance. Are there any packages with binds to heavily-optimised NVidia libs? Or maybe there is possibility of ffi? Core idea is great, but realisation of matrix multiplication I found in official repo list is way to slow, it even uses O(n^3) algo

athas commented 3 years ago

An FFI that allows you to directly call foreign functions from Futhark is still a long-term goal. It is however relatively to use the C API to take the output of a Futhark entry point and pass it to another function (there is an API function that allows you to extract a raw pointer from a Futhark array object).