accelerate-haskell

Difference in performance of compiled accelerate code ran from ghci and shell

左心房为你撑大大i 提交于 2019-12-20 10:19:09
问题 Problem Hello, I'm using accelerate library to create an application allowing the user to interactively call functions that process images, that's why I'm basing on and extending ghci using ghc api. The problem is that when running the compiled executable from the shell the computations are done under 100ms (slightly less than 80), while running the same compiled code within ghci it takes over 100ms (on average a bit more than 140) to finish. Resources sample code + execution logs: https:/

Difference in performance of compiled accelerate code ran from ghci and shell

点点圈 提交于 2019-12-02 23:28:08
Problem Hello, I'm using accelerate library to create an application allowing the user to interactively call functions that process images, that's why I'm basing on and extending ghci using ghc api. The problem is that when running the compiled executable from the shell the computations are done under 100ms (slightly less than 80), while running the same compiled code within ghci it takes over 100ms (on average a bit more than 140) to finish. Resources sample code + execution logs: https://gist.github.com/zgredzik/15a437c87d3d8d03b8fc Description First of all: the tests were ran after the CUDA