Skip to content

Internal compiler error (unhandled IO exception).: diffStm.convert: (to_bits32, i32, f32) #2292

@rowanG077

Description

@rowanG077

Using:

https://github.com/diku-dk/sorts/blob/master/lib/github.com/diku-dk/sorts/radix_sort.fut

With this reproducer, I expect due to get_bit:

import "radix_sort"

entry foo [n] (xs: [n]f32) (offset: f32): f32 =
  let go o = f32.sum (radix_sort_float f32.num_bits f32.get_bit (map (o +) xs))
  in vjp go offset 1

Due to this error:

Internal compiler error (unhandled IO exception).
Please report this at https://github.com/diku-dk/futhark/issues
diffStm.convert: (to_bits32, i32, f32)
CallStack (from HasCallStack):
  error, called at src/Futhark/AD/Rev.hs:233:27 in futhark-0.25.31-BiAOjOG8YPHE7SVcE6pZGA:Futhark.AD.Rev

Metadata

Metadata

Assignees

Labels

adRelated to automatic differentiationbugcompiler

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions