The Haskell Unfolder Episode 38: tasting and testing CUDA (map, fold, scan)
Andres Löh, Edsko de Vries
Wednesday, 15 January 2025
Andres Löh, Edsko de Vries
Wednesday, 15 January 2025
When profiling Haskell programs,
time spent in foreign functions (functions defined in C) does not show up on
normal time profiles, which can be problematic when debugging or optimizing
performance of code that makes heavy use of the foreign function interface (FFI). In this blog
post we present a new compiler plugin called trace-foreign-calls
, which makes
this time visible and available for analysis.