schwittlick / ofxDarknet

darknet neural network addon for openFrameworks
MIT License
496 stars 89 forks source link

can't run in CPU mode #19

Open genekogan opened 7 years ago

genekogan commented 7 years ago

trying to run in CPU by commenting out cuda_set_device(0); and adding gpu_index = -1;to the top of the init. it works and appears to use CPU. however, if you do this and don't happen to have CUDA installed, their will be a linker error (can't find cublas, cudart, etc) so it won't work on non-CUDA machines. i think these are baked into the dylib. we could refactor the code or perhaps just build a separate CPU-only dylib.