Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-f-cuda not working #243

Closed
rzil opened this issue Feb 27, 2015 · 10 comments
Closed

-f-cuda not working #243

rzil opened this issue Feb 27, 2015 · 10 comments

Comments

@rzil
Copy link

rzil commented Feb 27, 2015

I'm trying to install accelerate-examples on my MacBook Pro using this
cabal install -f-cuda accelerate-examples

For some reason, however, it is still trying to install the cuda package which doesn't work because my graphics card doesn't support CUDA.

@tmcdonell
Copy link
Member

hm, can you cabal install -f-cuda accelerate-examples --dry-run and show the list. I am guessing that cabal isn't applying the -f-cuda bit to all packages, and something else is still trying to pull it in still; maybe accelerate-fft or gloss-[raster-]accelerate.

@rzil
Copy link
Author

rzil commented Feb 27, 2015

cabal install -f-cuda accelerate-examples --dry-run
Resolving dependencies...
In order, the following would be installed (use -v for more details):
cuda-0.6.5.1
accelerate-cuda-0.15.0.0
cufft-0.1.1.0 (latest: 0.1.2.0)
accelerate-fft-0.15.0.0
gloss-accelerate-1.8.15.0
gloss-raster-accelerate-1.8.15.0
accelerate-examples-0.15.0.0

On 28 Feb 2015, at 2:53 am, Trevor L. McDonell notifications@github.com wrote:

hm, can you cabal install -f-cuda accelerate-examples --dry-run and show the list. I am guessing that cabal isn't applying the -f-cuda bit to all packages, and something else is still trying to pull it in still; maybe accelerate-fft or gloss-[raster-]accelerate.


Reply to this email directly or view it on GitHub #243 (comment).

@tmcdonell
Copy link
Member

Try the following?

cabal install accelerate-fft -f-cuda
cabal install gloss-accelerate -f-cuda
cabal install gloss-raster-accelerate -f-cuda

@rzil
Copy link
Author

rzil commented Mar 2, 2015

That worked as far as installing it is concerned. I also had to brew install llvm and create some symlinks but yeah, it installed. Only problem is that the example programs don't work!

@tmcdonell
Copy link
Member

If you're running under the interpreter, I am guessing that the example programs do actually work, but they just take longer to compute than you were willing to wait (;

accelerate-crystal --benchmark

May be informative...

The interpreter is only meant to be a reference implementation for the semantics of the language, it is not designed for speed. For that, you'll either need to install the CUDA backend (which doesn't work on your machine) or one of the (incomplete) CPU backends.

@rzil
Copy link
Author

rzil commented Mar 2, 2015

Oh I see. I was hoping to use OpenCL but now I can see that it is not available for some reason.

@rzil rzil closed this as completed Mar 3, 2015
@tmcdonell
Copy link
Member

Yes, the OpenCL backend has languished. If you know OpenCL, then we could use your expertise... (;

Moving forward, we could support AMD GPUs via the LLVM backend.

@mchakravarty
Copy link
Member

Moving forward, we could support AMD GPUs via the LLVM backend.

Makes the most sense to me, especially give SPIR-V: https://www.khronos.org/vulkan

@rzil
Copy link
Author

rzil commented Mar 4, 2015

I checked out the source for accelerate-opencl and I am updating it. I’m stuck at the following error. What happened to these objects Let2 and PairArrays?

Data/Array/Accelerate/OpenCL/CodeGen.hs:91:9:
Not in scope: data constructor ‘Let2’
Perhaps you meant ‘Let’ (imported from Data.Array.Accelerate.AST)

Data/Array/Accelerate/OpenCL/CodeGen.hs:95:9:
Not in scope: data constructor ‘PairArrays’

Ruben

On 4 Mar 2015, at 1:53 pm, Manuel M T Chakravarty notifications@github.com wrote:

Moving forward, we could support AMD GPUs via the LLVM backend.

Makes the most sense to me, especially give SPIR-V: https://www.khronos.org/vulkan https://www.khronos.org/vulkan

Reply to this email directly or view it on GitHub #243 (comment).

@tmcdonell
Copy link
Member

Ah, that was replaced by Atuple and Aprj quite a while ago... (298a3f2)
So getting that backend up to speed could take some effort.

@tmcdonell tmcdonell mentioned this issue Mar 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants