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

support pointefree mutables #144

Merged
merged 3 commits into from
Sep 21, 2017
Merged

support pointefree mutables #144

merged 3 commits into from
Sep 21, 2017

Conversation

SimonDanisch
Copy link
Member

No description provided.

src/kernel.jl Outdated
@@ -247,7 +247,7 @@ function set_arg!{T}(k::Kernel, idx::Integer, arg::T)
ref = if isbits(T_aligned)
Base.RefValue(packed)
else
packed
pointer_from_objref(packed)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be fine to just say: Ref(packed)? and then let the logic for references take over instead of re-implementing it here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that might just work...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to quickly fix it otherwise I will merge this and tag a point release.


end

mutable struct MutableParams
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't work on 0.5. See test failure on GPU CI...

@vchuravy vchuravy merged commit 0a10e44 into master Sep 21, 2017
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

Successfully merging this pull request may close these issues.

2 participants