X-Git-Url: http://git.euphorik.ch/?p=GPU.git;a=blobdiff_plain;f=WCudaMSE%2FStudent_Cuda_Image%2Fsrc%2Fcpp%2Fmain.cpp;fp=WCudaMSE%2FStudent_Cuda_Image%2Fsrc%2Fcpp%2Fmain.cpp;h=46fbbce68feeb7c1f3db9041631820bf15cf6ba8;hp=5e56e8afe0bd692b20fdf4a35111307876446c21;hb=1c4b2276e7157acde9a3014b68d5d1667a7d6a44;hpb=f8259dce248a4411c3bc64cecb9fc268c4fd81d6 diff --git a/WCudaMSE/Student_Cuda_Image/src/cpp/main.cpp b/WCudaMSE/Student_Cuda_Image/src/cpp/main.cpp index 5e56e8a..46fbbce 100755 --- a/WCudaMSE/Student_Cuda_Image/src/cpp/main.cpp +++ b/WCudaMSE/Student_Cuda_Image/src/cpp/main.cpp @@ -46,7 +46,7 @@ int main(int argc, char** argv) cout << "main" << endl; if (Device::isCuda()) - { + { GLUTImageViewers::init(argc, argv); //Device::printAll(); @@ -54,7 +54,8 @@ int main(int argc, char** argv) // Server Cuda1: in [0,5] // Server Cuda2: in [0,2] - int deviceId = 0; + const int deviceId = 5; + initCuda(deviceId); vector args; for (int i = 1; i < argc; ++i) @@ -106,7 +107,7 @@ int start(const vector& args) if (IS_GL) { - return mainGL(args); // Bloquant, Tant qu'une fenetre est ouverte + return mainGL(args); // Bloquant, Tant qu'une fenêtre est ouverte. } else {