-
Notifications
You must be signed in to change notification settings - Fork 0
event register error on extrae call c type conversion #11
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
Comments
My suggestion here is that, instead of letting |
I don't think that is necessary. We just need to tell correctly the type. ..., values::Ref{Value}, ... it should be ..., values::Ref{Vector{Value}}, ... Can you try that? |
Yep, this is what I already tried yesterday in PR #12 |
Nice! Good catch. Merging now. |
Wait @mofeing !! This was not the only issue with the type conversion in register 😅 after ai solved the first one, another one appeared! That's what I wanted to discuss with you |
Ahh, okok. Tell me. |
Next one is relative to the conversion of the
|
I did what is suggested in https://docs.julialang.org/en/v1/manual/calling-c-and-fortran-code/ I think the solution should be similar: remove the |
This shows another error, but I am not sure now if it is the same place (our solution was not correct) or another place (so we solved previous issue).
|
The error happens because |
When registering an event type, this error arises:
The cause seems to be the conversion of the vector of event values from Ref(Vector{Int64}) to Uint64, which is the type specified in
Extrae.jl/src/FFI.jl
Line 134 in 1ddee26
vlaues
parameter.My thought here is that Julia is not interpreting the vector as a pointer, which is something that we straightforward do in C.
The text was updated successfully, but these errors were encountered: