]> AND Public Git Repository - simgrid.git/blobdiff - examples/msg/gpu/test_MSG_gpu_task_create.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : fix platform file path in tesh examples
[simgrid.git] / examples / msg / gpu / test_MSG_gpu_task_create.c
index 05d34bfc88fc478d92ae5e20880f6b5e2c6cbf84..29362af2b342fd2353d6004f9876f4963a246ff2 100644 (file)
@@ -4,6 +4,11 @@
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
+/** @addtogroup MSG_examples
+ * 
+ * - <b>gpu/test_MSG_gpu_task_create.c</b> Example of use of the very experimental (for now) GPU resource. 
+ */
+
 #include <stdio.h>
 #include <stdlib.h>
 #include "msg/msg.h"
@@ -17,17 +22,15 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test,
 /** Main function */
 int main(int argc, char *argv[])
 {
-  MSG_error_t res = MSG_OK;
+  msg_error_t res = MSG_OK;
 
-  MSG_global_init(&argc, argv);
+  MSG_init(&argc, argv);
 
-  m_gpu_task_t mytask = NULL;
+  msg_gpu_task_t mytask = NULL;
 
   mytask = MSG_gpu_task_create("testTask", 2000.0, 20.0, 20.0);
 
-
-
-  MSG_clean();
+  XBT_INFO("GPU task %p was created", mytask);
 
   if (res == MSG_OK)
     return 0;