We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
…when called from exported function if there is a variable in scope that is initialized to a different lambda depending on function parameter.
repro:
#[import(cc = "thorin")] fn nvvm(_dev: i32, _grid: (i32, i32, i32), _block: (i32, i32, i32), _body: fn() -> ()) -> (); #[export] fn test(b: bool) -> () { let fun = if b { @||{} } else { @||{} }; nvvm(0, (1, 1, 1), (1, 1, 1), @||{}); }
compilation via artic with --emit-llvm results in
--emit-llvm
src/thorin/be/codegen.cpp:39: thorin::get_kernel_configs(thorin::Importer&, const std::vector<thorin::Continuation*>&, thorin::Cont2Config&, std::function<std::unique_ptr<thorin::KernelConfig>(thorin::Continuation*, thorin::Continuation*)>)::<lambda(thorin::Continuation*)>: Assertion `p.second && "single kernel config entry expected"' failed.
The text was updated successfully, but these errors were encountered:
Most likely related to #128, let's consolidate discussion there
Sorry, something went wrong.
No branches or pull requests
…when called from exported function if there is a variable in scope that is initialized to a different lambda depending on function parameter.
repro:
compilation via artic with
--emit-llvm
results inThe text was updated successfully, but these errors were encountered: