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

set default for llvm-ptx to False? #7

Open
jwaldmann opened this issue Jan 8, 2019 · 1 comment
Open

set default for llvm-ptx to False? #7

jwaldmann opened this issue Jan 8, 2019 · 1 comment

Comments

@jwaldmann
Copy link

README says This will use optimised backend implementations where available. This sounds as if availability is checked in some automated way. Does not seem to work, as the llvm-ptx flag is True by default, and consequently (?) cabal install breaks if I don't have CUDA. Yes, I was able to figure out

cabal install  accelerate-fft --flags="-llvm-ptx" 

but you might make this flag default to False. - I guess llvm-cpu: True is fine since most people will have this installed.

@tmcdonell
Copy link
Member

It certainly would be nice if this were more automated. I'm not sure if this can be done in a better way... maybe if the Setup.hs guesses whether CUDA is available, before committing to add that dependency (if not explicitly set either way)? It'd have to be a guess though, or provide all the same options that the cuda package has for locating your installation (which feels a bit heavy-weight).

Are there better ways to do it?

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

2 participants