accelerate-examplesto run, preferable with the docker variant that is to be found in the top-level directory. To successfully perform a
stack buildI had to recreate the symlink to
libcuda.so.1that had been removed again during the Docker stages. Am I doing something wrong that I even need
libcudainside the container?
/opt/accelerate-examples/.stack-work/install/x86_64-linux/15ab62d7d6829823d56e91b6a792b2fece77c32bb61dfca3848225d46a7ad9b4/8.10.2/bin/accelerate-canny: error while loading shared libraries: libffi.so.7: cannot open shared object file: No such file or directory, which makes me suspect even more that I'm simply using the Docker setup the wrong way. Any help is greatly appreciated!
Hi @kenranunderscore. Yes, to use the docker images you’ll probably want to run via nvidia-docker, which should take care of the
Feel free to post any errors you run into, I’ll do my best to respond although might not be too quick as I’m on leave right now. You might have better luck with the version of accelerate-llvm from GitHub by the way, as that should work with the latest ghc/llvm/CUDA
@tmcdonell Good! Keeping busy. Chasing a toddler around also now. How have you been?
After I posted my question I did see a lot of the modules are still importable (I thought they were hidden from import because they were hidden from haddock). Is accelerate-fft the gold standard now for an cuda ffi?
@tmcdonell Hey, thanks! I seem to have gotten it all working based on those two templates, thanks for the help.
I'm also trying to add a native implementation using MWC randoms and wrapping the call to randomArray into a "Par Native (Future (Vector Float))" but the Array types aren't working together. How do I move the Array from Data.Array.Accelerate into the one from Data.Array.Accelerate.Representation.Array?
I'll take a look, thanks.
Hey, yeah, here's a gist https://gist.github.com/fabricatedmath/90e64295975288161c0bdbf8f5662692.
The ptx part compiles and runs just fine, the native is giving the error in the gist