Skip to content

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