Skip to content

Instantly share code, notes, and snippets.

@ugovaretto
Created July 20, 2012 11:50
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 ugovaretto/3150327 to your computer and use it in GitHub Desktop.
Save ugovaretto/3150327 to your computer and use it in GitHub Desktop.
Detect GPU support for MVAPICH2
char* str = NULL;
if( ( str = getenv( "MV2_USE_CUDA" ) ) != NULL) {
printf( "MVAPICH2-CUDA ENABLED: %s\n" );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment