-
Notifications
You must be signed in to change notification settings - Fork 18.7k
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
Create CPU only Version #3
Comments
IMHO I wouldn't put this at a high priority. Plus it would be pretty nontrivial to implement this, requiring a lot of #ifdef macros as well as substantially rewriting the syncedmem class. We would also need to consider how we would like caffe::Caffe::mode to be... All these might make the codebase rather messy so I am not sure if it is the right move - at the end of day, it probably does not hurt too much to just ship with cuda libraries - unlike MKL, they are freely redistributable. |
I agree that is not high priority, but I think that separating the cpu and gpu parts of code would be helpful for maintenance and eventually to make a CPU only version without needing CUDA to compile or run it. |
The current code actually allows one to run without a physical GPU (as long For developers working on caffe I assume they will at least have cuda Yangqing On Tue, Nov 26, 2013 at 12:21 PM, Sergio Guadarrama <
|
on Mac OS X 10.9 the cuda libaries are linked to libstdc++ while everything else on the system is linked to libc++ by default, due to the switch from gcc to clang. This way compiling |
Hi tdomhan, |
The OSX 10.9 situation hasn't yet changed since @tdomhan's nice summary of the issue. OS X 10.9 is not currently a feasible compilation target for GPU mode. The For CUDA compatibility on OS X it seems to mostly be a matter of waiting for a new version of CUDA to ship that links to libc++. |
The problem of compiling with gcc seems to be that when linking it detects duplicate symbol caffe::LRNLayer::LRNLayer(caffe::LayerParameter Sergio 2014-01-31 Evan Shelhamer [email protected]:
|
I managed to build and run caffe under Mac OS X. I'll post the details later. It's a little hacky of course. |
Already I finally had time to add instructions for OS X 10.9, see: f0f594c |
Thanks, Tobias! Following your instructions, I succeeded in installing Caffe on OS X 10.9. I did a test on the MNIST demo, but found that the GPU setting (running time: 275s) doesn't have any advantage over the CPU setting (running time: 284s) on a latest iMac. I only changed the setting "solver_mode: 1/0" in data/lenet_solver.prototxt. Do you have any comparison between the GPU and the CPU setting? |
The MNIST demo is not likely to show the advantage of GPU over CPU, since Yangqing On Thu, Feb 6, 2014 at 8:39 PM, junwang4 [email protected] wrote:
|
Yangqing, |
I have not got detailed analysis yet. On imagenet with GPUs, full Yangqing On Thu, Feb 6, 2014 at 8:59 PM, junwang4 [email protected] wrote:
|
Thanks - just noticed this from your CAFFE presentation |
A not very accurate benchmark of CPU and GPU mode is done in #85. Even the result is not fair for GPU, it still shows great speed advantage. |
Done in #561! |
update from original
Add include and lib required for building with mxGPUArray support
Fix code format issues
* 3f48aeb merge to new bvlc base c0597b1 |\ | * fc0a02e Merge pull request BVLC#6 from yahoo/jun_cos_layer | |\ | | * 807ee66 enhance cos layer | |/ | * ce1db4b Merge pull request BVLC#5 from yahoo/new_data_layer | |\ | | * d4b2bf1 new datalayer changes | |/ | * 5498759 Merge pull request BVLC#4 from yahoo/clean_permission | |\ | | * 9b7fff8 Permission change for travis | | * 8377456 Added dynamic linker resolution | | * 840d6b5 Synchedmem | | * 5fc8416 Need set_gpu_data | | * ea0a8cb Merge branch 'bvlc_master' into clean_permission | | * fb7e2a9 fix file permissions | |/ | * 611197a Merge pull request BVLC#3 from yahoo/python_path_patch | |\ | | * e107fb7 Python path patch | |/ | * 486f979 Merge pull request BVLC#2 from anfeng/master | |\ | | * 9cdfeb2 fix field Id for dataframe_format | |/ | * f4e26f1 move dataframe format setting into prototxt | * 23b0191 Merge pull request BVLC#1 from yahoo/afeng_df | |\ | | * 177e0d9 MemoryDataLayer optional fields for DataFrames | |/ | * 4b677c6 initial commit * eb8dfc8 Merge pull request BVLC#6 |\ | * 864aa65 implement CPU-GPU parameter update for data parallelism * 411aafd Merge pull request BVLC#5 * 0cb7d18 Avoid sending the prefetched batch back to host
Fixed test exec error: lrn_ristretto_layer.cpp:16] LRN layer only supports minifloat
No description provided.
The text was updated successfully, but these errors were encountered: