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

Internal compiler error: lmadcopyCPU: 0 #2100

Closed
nqpz opened this issue Jan 24, 2024 · 1 comment
Closed

Internal compiler error: lmadcopyCPU: 0 #2100

nqpz opened this issue Jan 24, 2024 · 1 comment
Assignees

Comments

@nqpz
Copy link
Member

nqpz commented Jan 24, 2024

I was going to build a nice histogram of all my unit values, but I'm getting an error.

Program:

entry main (n: i64): () =
  let arr = reduce_by_index
            (replicate n ())
            (\() () -> ())
            ()
            (replicate n 0)
            (replicate n ())
  in arr[0]

Error when using futhark multicore:

lmadcopyCPU: 0
CallStack (from HasCallStack):
  error, called at src/Futhark/CodeGen/Backends/GenericC.hs:74:16 in futhark-0.26.0-inplace:Futhark.CodeGen.Backends.GenericC

There are no errors when using futhark c.

This minimal example seems to work with GPU backends, but I got this runtime error when running the code generated by futhark opencl in the larger codebase of https://github.com/nqpz/raster3d/:

undefined reference to `lmad_copy_gpu2gpu_0b'
@athas
Copy link
Member

athas commented Jan 24, 2024

This one is easy to fix, but the question is where to do it.

@athas athas self-assigned this Jan 24, 2024
@athas athas closed this as completed in d02a3d2 Jan 24, 2024
athas added a commit to 0undefined/futhark that referenced this issue Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants