Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Pause before exiting.

  • Loading branch information...
commit 24f41f1759975f8df9fe37a80802b8508ae08c61 1 parent 13058c9
@nbigaouette authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 example/Example.cpp
View
5 example/Example.cpp
@@ -70,6 +70,11 @@ int main(int argc, char *argv[])
platforms_list[platform].Preferred_OpenCL_Device(), // OpenCL device id
0, &err);
+ // Pause
+ std::string answer;
+ std::cout << "Press enter to exit example. The OpenCL device will be released.\n";
+ getline(std::cin, answer);
+
return EXIT_SUCCESS;
}
Please sign in to comment.
Something went wrong with that request. Please try again.