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

Fixed CMake building test objects multiple times #1045

Merged
merged 3 commits into from
Sep 8, 2014

Conversation

akosiorek
Copy link
Contributor

@jeffdonahue noticed in #943 that some test objects were built multiple times. E.g. test_caffe_main.cpp was built separately for each test executable. I fixed it by employing CMake's Object Library (available since CMake 2.8.8). It is not available for CUDA, however, and in this case I'm creating a separate library for every test_*.cu.

Surprisingly, CMake builds are now faster than Make's.

@jeffdonahue
Copy link
Contributor

Sweet! Great work @akosiorek.

jeffdonahue added a commit that referenced this pull request Sep 8, 2014
Fixed CMake building test objects multiple times
@jeffdonahue jeffdonahue merged commit adaad52 into BVLC:dev Sep 8, 2014
mitmul pushed a commit to mitmul/caffe that referenced this pull request Sep 30, 2014
Fixed CMake building test objects multiple times
RazvanRanca pushed a commit to RazvanRanca/caffe that referenced this pull request Nov 4, 2014
Fixed CMake building test objects multiple times
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.

3 participants