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

fix unconditional usage of getAvailableSlotsHost #89

Merged
merged 1 commit into from
Jul 7, 2015

Conversation

BenjaminW3
Copy link
Member

Currently the getAvailableSlotsHost function of a CreationPolicy is required irrespective of its availability.
In the source the CreationPolicy::providesAvailableSlots::value flag is checked in a runtime if so the function is required for all CreationPolicies even for OldMalloc.
This has been changed to a compile time construct.

See issue #88.

Currently the `getAvailableSlotsHost` function of a `CreationPolicy` is required irrespective of its availability.
In the [source](https://github.com/ComputationalRadiationPhysics/mallocMC/blob/84c8c20309633c98f69be83153eb897ce2d83110/src/include/mallocMC/mallocMC_hostclass.hpp#L144-155) the `CreationPolicy::providesAvailableSlots::value` flag is checked in a runtime `if` so the function is required for all CreationPolicies even for `OldMalloc`.
This has been changed to a compile time construct.
@ax3l
Copy link
Member

ax3l commented Jul 6, 2015

@slizzered can you pls take a look? :)

@ax3l ax3l added this to the 2.2.0crp: More New features milestone Jul 6, 2015
@slizzered
Copy link
Contributor

I like the solution a lot, thanks @BenjaminW3 !

slizzered added a commit that referenced this pull request Jul 7, 2015
fix unconditional usage of getAvailableSlotsHost
@slizzered slizzered merged commit 2fafcbd into alpaka-group:dev Jul 7, 2015
@ax3l ax3l added the bug label Jul 20, 2015
@BenjaminW3 BenjaminW3 deleted the patch-1 branch January 5, 2016 19:26
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 this pull request may close these issues.

3 participants