Skip to content

Instantly share code, notes, and snippets.

@bikashg
Created December 16, 2016 17:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bikashg/38392f803149443341396654f50f8a6d to your computer and use it in GitHub Desktop.
Save bikashg/38392f803149443341396654f50f8a6d to your computer and use it in GitHub Desktop.
public class CudaTester {
public static void main(String[] args) {
// This first line should be at the top to force the system to use several available GPUs. By default, it takes 1 GPU
CudaEnvironment.getInstance().getConfiguration().allowMultiGPU(true);
System.out.println("\n\n\nMultiple GPU Using Configuration Loaded ---- OK\n\n");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment