-
Notifications
You must be signed in to change notification settings - Fork 118
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
An "expected an expression" error in compiled CUDA code. #318
Comments
What is the error message? What version of ghc/gcc/nvcc etc. are you using? Are you on windows/linux/mac? Some information to help diagnose and work out the problem would be useful here... |
You're right. Sorry. The error is the one in the title. Just that. I'm running GHC 7.10.3 on Windows. GCC is the one that comes with that I'll check the nvcc version when I get home. On Wed, May 25, 2016, 3:18 AM Trevor L. McDonell notifications@github.com
|
|
I suspected that you were using windows. The problem is that MSVC does not support statement expressions. We discussed this in #234, and @mwu-tow has a fix there that should also work for you. It might be worthwhile trying to merge that fix into accelerate-cuda (I think the necessary changes to language-c-quote eventually made it in) I will just have to reacquaint myself with everything that was discussed etc. The long term plan is probably to just transition everybody to the LLVM backends, where this problem doesn't exist. |
closing as the |
I have the following Haskell function
(never mind what it does).
This gets compiled to something like
which is apparently an error.
The text was updated successfully, but these errors were encountered: