Created
September 4, 2009 16:20
-
-
Save kashif/180971 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
#include <stdio.h> | |
#include <cutil_inline.h> | |
#include <mathlink.h> | |
/////////////////////////////////////////////////////////////////////////////// | |
// Main program | |
/////////////////////////////////////////////////////////////////////////////// | |
int main(int argc, char **argv) | |
{ | |
// use command-line specified CUDA device, otherwise use device with highest Gflops/s | |
if( cutCheckCmdLineFlag(argc, (const char**)argv, "device") ) | |
cutilDeviceInit(argc, argv); | |
else | |
cudaSetDevice( cutGetMaxGflopsDeviceId() ); | |
return MLMain(argc, argv); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment