-
Notifications
You must be signed in to change notification settings - Fork 18.6k
CPU only tests #478
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
CPU only tests #478
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you return this to the original one-line format?
http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml#Namespaces
|
Looks good to me, thanks for cleaning the CPU and GPU test :) |
src/caffe/common.cpp
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we tend to stick to the Google style guide, kindly rename this to
static bool g_curand_availability_logged = false;
and likewise below.
|
Both issues have been fixed. Ready to be merged. |
|
@shelhamer Once the coldbrew master agrees, let's merge :) |
src/caffe/test/test_syncedmem.cpp
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this test dropped? the recovered_value test that follows is the one actually checking the sync, and the memset should always succeed, but tests are tests.
|
@shelhamer, the memtest issue is resolved. Please review again. Thanks! |
|
Thanks @kloudkl! |
CPU only tests
To enable running the tests on machines with only the CPU, the GPU related codes have to be separated.
Related issue: #468