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

Suppress asserts in the GPU code, unless GPU_DEBUG is defined #186

Merged

Conversation

fwyzard
Copy link

@fwyzard fwyzard commented Oct 6, 2018

No description provided.

@fwyzard
Copy link
Author

fwyzard commented Oct 6, 2018

Validation summary

Reference release CMSSW_10_2_5 at a8a031d
Development branch CMSSW_10_2_X_Patatrack at 4d789eb
Testing PRs:

makeTrackValidationPlots.py plots

/RelValTTbar_13/CMSSW_10_2_2-PU25ns_102X_upgrade2018_realistic_v11-v2/GEN-SIM-DIGI-RAW

/RelValZMM_13/CMSSW_10_2_2-102X_upgrade2018_realistic_v11-v1/GEN-SIM-DIGI-RAW

DQM GUI plots

/RelValTTbar_13/CMSSW_10_2_2-PU25ns_102X_upgrade2018_realistic_v11-v2/GEN-SIM-DIGI-RAW

/RelValZMM_13/CMSSW_10_2_2-102X_upgrade2018_realistic_v11-v1/GEN-SIM-DIGI-RAW

logs and nvprof/nvvp profiles

/RelValTTbar_13/CMSSW_10_2_2-PU25ns_102X_upgrade2018_realistic_v11-v2/GEN-SIM-DIGI-RAW

/RelValZMM_13/CMSSW_10_2_2-102X_upgrade2018_realistic_v11-v1/GEN-SIM-DIGI-RAW

Logs

The full log is available at https://fwyzard.web.cern.ch/fwyzard/patatrack/pulls/51cb18c08648b23a767f3d5f9b6f492c72d351e9/log .

#define NDEBUG
#endif // NDEBUG
#endif // GPU_DEBUG
#endif // __CUDA_ARCH__
Copy link

Choose a reason for hiding this comment

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

Somehow it would feel nice to abstract this piece to a common place, but I'm not sure if, in the end, it would ask more trouble than it would help.

@fwyzard
Copy link
Author

fwyzard commented Oct 6, 2018 via email

@fwyzard
Copy link
Author

fwyzard commented Oct 6, 2018

OK, both on Linux and on OS X assert.hundefines assert and redefines it depending on the value of NDEBUG.
So it should work to move the check, the possible definition of NDEBUG, and the inclusion of assert.h/cassert to a separate file.

@fwyzard
Copy link
Author

fwyzard commented Oct 6, 2018

Validation summary

Reference release CMSSW_10_2_5 at a8a031d
Development branch CMSSW_10_2_X_Patatrack at af3ccf5
Testing PRs:

makeTrackValidationPlots.py plots

/RelValTTbar_13/CMSSW_10_2_2-PU25ns_102X_upgrade2018_realistic_v11-v2/GEN-SIM-DIGI-RAW

/RelValZMM_13/CMSSW_10_2_2-102X_upgrade2018_realistic_v11-v1/GEN-SIM-DIGI-RAW

DQM GUI plots

/RelValTTbar_13/CMSSW_10_2_2-PU25ns_102X_upgrade2018_realistic_v11-v2/GEN-SIM-DIGI-RAW

/RelValZMM_13/CMSSW_10_2_2-102X_upgrade2018_realistic_v11-v1/GEN-SIM-DIGI-RAW

logs and nvprof/nvvp profiles

/RelValTTbar_13/CMSSW_10_2_2-PU25ns_102X_upgrade2018_realistic_v11-v2/GEN-SIM-DIGI-RAW

/RelValZMM_13/CMSSW_10_2_2-102X_upgrade2018_realistic_v11-v1/GEN-SIM-DIGI-RAW

Logs

The full log is available at https://fwyzard.web.cern.ch/fwyzard/patatrack/pulls/0e8417bd484d07eab83359a4828225a575efdff3/log .

@fwyzard fwyzard merged commit 0e3f658 into cms-patatrack:CMSSW_10_2_X_Patatrack Oct 6, 2018
@fwyzard fwyzard deleted the assert_with_GPU_DEBUG branch October 6, 2018 13:04
@fwyzard fwyzard added this to the CMSSW_10_2_6_Patatrack milestone Oct 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants