You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While working on some futhark code, I added a new entry point to my main.fut file. There were no syntax errors/ any reason to think the code would not compile. For some reason, I was not able to compile to Cuda or OpenCL. However, compiling to C still works fine.
Not exactly sure why. It is not always consistent when/why this happens.
I noticed that even if I commented out the entry port that seemed to have caused the compilation error, it would still not compile for Cuda/OpenCL.
If I commented all of the code, then I was able to compile with Cuda/OpenCL. I could even uncomment portions of the main.fut that had been commented out and it would also compile. Though, once that entry port was uncommented, it would fail again, even after commenting out.
I was able to replicate this on two different machines.
Below are the error messages I was shown when this happened:
$ futhark opencl main.fut
Internal compiler error (unhandled IO exception).
Please report this at https://github.com/diku-dk/futhark/issues
Scope.lookupInfo: Name mem_35410 not found in type environment.
CallStack (from HasCallStack):
error, called at src/Futhark/IR/Prop/Scope.hs:85:9 in futhark-0.26.0-inplace:Futhark.IR.Prop.Scope
$ futhark cuda main.fut
Internal compiler error (unhandled IO exception).
Please report this at https://github.com/diku-dk/futhark/issues
Scope.lookupInfo: Name mem_35410 not found in type environment.
CallStack (from HasCallStack):
error, called at src/Futhark/IR/Prop/Scope.hs:85:9 in futhark-0.26.0-inplace:Futhark.IR.Prop.Scope
$ futhark c main.fut # <--- this works
The text was updated successfully, but these errors were encountered:
It's probably a bug in a pass that only runs with the GPU backends. Deleting entry points can cause code to go dead and be removed before it makes it to the problematic pass. Can I see the program?
Hello, I have just run into an interesting bug.
While working on some futhark code, I added a new entry point to my main.fut file. There were no syntax errors/ any reason to think the code would not compile. For some reason, I was not able to compile to Cuda or OpenCL. However, compiling to C still works fine.
Not exactly sure why. It is not always consistent when/why this happens.
I noticed that even if I commented out the entry port that seemed to have caused the compilation error, it would still not compile for Cuda/OpenCL.
If I commented all of the code, then I was able to compile with Cuda/OpenCL. I could even uncomment portions of the main.fut that had been commented out and it would also compile. Though, once that entry port was uncommented, it would fail again, even after commenting out.
I was able to replicate this on two different machines.
Below are the error messages I was shown when this happened:
$ futhark opencl main.fut
Internal compiler error (unhandled IO exception).
Please report this at https://github.com/diku-dk/futhark/issues
Scope.lookupInfo: Name mem_35410 not found in type environment.
CallStack (from HasCallStack):
error, called at src/Futhark/IR/Prop/Scope.hs:85:9 in futhark-0.26.0-inplace:Futhark.IR.Prop.Scope
$ futhark cuda main.fut
Internal compiler error (unhandled IO exception).
Please report this at https://github.com/diku-dk/futhark/issues
Scope.lookupInfo: Name mem_35410 not found in type environment.
CallStack (from HasCallStack):
error, called at src/Futhark/IR/Prop/Scope.hs:85:9 in futhark-0.26.0-inplace:Futhark.IR.Prop.Scope
$ futhark c main.fut # <--- this works
The text was updated successfully, but these errors were encountered: