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

reserve_shared does not work as intended in JIT #132

Closed
PearCoding opened this issue Sep 19, 2022 · 0 comments
Closed

reserve_shared does not work as intended in JIT #132

PearCoding opened this issue Sep 19, 2022 · 0 comments

Comments

@PearCoding
Copy link
Contributor

Compiling a program with JIT and using reserve_shared inside a device code triggers the following error:

E:runtime:1313 col 32 - 51: reserve_shared: only allowed in device code

The same code compiled in the command line (anydsl_runtime_wrap) works as intended.
The zip file reserve_shared_jit.zip contains a simple project with two targets nonjit and jit.

nonjit compiles without any problems. Note, running it might return garbage, as the target intention is only to be compiled.
jit compiles, as no artic code is touched yet, but running it triggers the above mentioned error.

The error was replicated on a Ubuntu 2022.4 system with the most recent AnyDSL version (as of 19.09.2022).

richardmembarth added a commit to AnyDSL/runtime that referenced this issue Sep 19, 2022
Separate modules before codegen.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants