Skip to content

Conversation

@Flamefire
Copy link
Contributor

Instead of setting the instance variable a local variable was created and ignored. This results in different local indices instead of same ones which may cause collisions when xoring with already local seeds.

only affects dev.

@psychocoderHPC psychocoderHPC added bug a bug in the project's code component: core in PIConGPU (core application) labels Aug 12, 2015
@psychocoderHPC psychocoderHPC added this to the Open Beta milestone Aug 12, 2015
@ax3l
Copy link
Member

ax3l commented Aug 13, 2015

oh my, well spotted.

only affects dev? (added this speculatively in the description)

@ax3l
Copy link
Member

ax3l commented Aug 13, 2015

@n01r can you pls cross-check if the same affects you for the ionization seeds? probably cloned from this position in the code.

@ax3l ax3l mentioned this pull request Aug 13, 2015
ax3l added a commit that referenced this pull request Aug 13, 2015
Actually set the total GPU offset
@ax3l ax3l merged commit 65ca31c into ComputationalRadiationPhysics:dev Aug 13, 2015
@ax3l
Copy link
Member

ax3l commented Aug 13, 2015

this should have caused an "unused variable" warning... weird.

@Flamefire if you are interested, can you pls compile PIConGPU once with -Wshadow and see if we find locations that might do similar madness? #1042
The location in CMake is here.

@Flamefire Flamefire deleted the fix_rand branch August 13, 2015 14:35
@n01r
Copy link
Member

n01r commented Aug 13, 2015

@ax3l This is actually how @Flamefire spotted the bug, when we were discussing the ionization seed.

@ax3l
Copy link
Member

ax3l commented Aug 13, 2015

sweet. did you fix the same seeding in ionization?

ax3l referenced this pull request in n01r/picongpu Aug 13, 2015
- `ionization.hpp`: Add documentation to clarify the domain coordinates
- `ionizationMehtods.hpp`: Use the correct cell index inside the local domain
                           to improve seeding.
                           Also added documentation.
@n01r
Copy link
Member

n01r commented Aug 13, 2015

jup ... workaround-ish for now and when the PRs are merged it can be done properly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug a bug in the project's code component: core in PIConGPU (core application)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants