athas / raytracinginoneweekendinfuthark

Ray Tracing in One Weekend in Futhark
18 stars 1 forks source link

error when running #2

Open Broyojo opened 3 years ago

Broyojo commented 3 years ago

I am trying to run this with the provided instructions, and I am always running into the same error:

Error at raytracer.fut:154:22-28:
Unknown name "f32.neg"

I am using a nvidia gpu with ubuntu 20.04.

athas commented 3 years ago

You need Futhark 0.18.6 to run this code. I'll update the README. (Or replace all occurences of f32.neg to f32.negate if you cannot install that version for some reason.)

Broyojo commented 3 years ago

yes, I am running Futhark 0.19.0

athas commented 3 years ago

0.19.0 just means it's an unreleased version newer than 0.18.1. It can still be older than 0.18.6 (and yours is).