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

Compilation of NESTML synapse model fails when random_normal() function is used #804

Open
pnbabu opened this issue Aug 24, 2022 · 2 comments · May be fixed by #805
Open

Compilation of NESTML synapse model fails when random_normal() function is used #804

pnbabu opened this issue Aug 24, 2022 · 2 comments · May be fixed by #805
Labels

Comments

@pnbabu
Copy link
Contributor

pnbabu commented Aug 24, 2022

parameters:
    #STP
    U real = random_normal(0.5, 0.25)
    ...
end

When a NESTML synapse model has a random_normal() function, as shown above, the generated code for the synapse fails to compile with the following error.

/tmp/nestml-stdp-stp/stdp_stp_nestml__with_iaf_psc_delta_nestml.h:704:68: error: use of undeclared identifier 'get_thread'
P_.U = ((0.5) + (0.25) * normal_dev_( nest::get_vp_specific_rng( get_thread() ) )); // as real

make[2]: *** [CMakeFiles/nestml_module_module.dir/nestml_module.o] Error 1
make[1]: *** [CMakeFiles/nestml_module_module.dir/all] Error 2
make: *** [all] Error 2
@pnbabu
Copy link
Contributor Author

pnbabu commented Oct 10, 2022

Fixed by #805

@pnbabu pnbabu closed this as completed Oct 10, 2022
@pnbabu
Copy link
Contributor Author

pnbabu commented Oct 11, 2022

Closed by mistake. Reopening.

@pnbabu pnbabu reopened this Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant