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

Building without CUDA? #2

Closed
baristahell opened this issue May 9, 2017 · 1 comment
Closed

Building without CUDA? #2

baristahell opened this issue May 9, 2017 · 1 comment

Comments

@baristahell
Copy link

baristahell commented May 9, 2017

Hi
I'm trying to build N2D2 in CPU-only mode but can't de-activate the automatic CUDA build.
Is there a way to make without CUDA?
Thanks.

EDIT : Ok nevermind, there's a hidden USE_CUDA parameter.
You can build without CUDA by using

cmake .. -DUSE_CUDA=0

@olivierbichler-cea
It could be nice to be told in the documentation that it's possible, maybe even un-hide this parameter, i think many users would be glad to compile N2D2 for a CPU-only use.

@olivierbichler-cea
Copy link
Contributor

Why do you want to build without CUDA?
If CUDA is not installed, it will not be detected by CMake and CUDA support will be automatically disabled.
If CUDA is installed on your machine, CUDA models will be also available.

Note that in either case, CPU-only models are always here. To simulate a network without CUDA acceleration, simply use the "Frame" models instead of the "Frame_CUDA" models (you can change the default model with the "DefaultModel" INI parameter).

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

No branches or pull requests

2 participants