Skip to content

function compilation error #1020

Answered by ptheywood
khateraAlizada asked this question in Q&A
Discussion options

You must be logged in to vote

Unfortunately Google Colab's version of ipykernel is very old and doesn't forward messages from std::cout to the user, so the actual compilation error message isn't visible when using google colab: see FLAMEGPU/FLAMEGPU2-tutorial-python#10 and the issue we opened with googlecollab googlecolab/colabtools#2230 requesting it be updated.

We are reliant on google collab making this change, it is not something we can fix ourselves.


Looking at the code block in the first screenshot, I think line 41 is your issue, as C/C++/CUDA variable names cannot contain -.

Using const int has_i = ... should resolve that problem at least.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@khateraAlizada
Comment options

Answer selected by ptheywood
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants