Created
December 2, 2017 14:59
-
-
Save prabindh/9d0c589e2eed392822c7174dde31e7d0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ** NOTE: You would need to perform a "cudaSetDevice(gpuId)" with this same gpuId before any CUDA operations are performed on this gpuId | |
bool ArapahoV2::Setup( | |
ArapahoV2Params & p, | |
int & expectedWidth, | |
int & expectedHeight | |
int gpuId | |
) | |
{ | |
/// All old stuff | |
load_weights(&net, p.weightfile); | |
set_batch_network(&net, 1); | |
l = net.layers[net.n-1]; | |
// ** Add a new GPU index here instead of default | |
net.gpu_index = gpuId; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment