Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'coverity_scan' of github.com:mquinson/simgrid
[simgrid.git] / examples / msg / gpu / test_MSG_gpu_task_create.c
1 /* Copyright (c) 2007-2010, 2012-2015. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 /** @addtogroup MSG_examples
8  * 
9  * - <b>gpu/test_MSG_gpu_task_create.c</b> Example of use of the very experimental (for now) GPU resource. 
10  */
11
12 #include <stdio.h>
13 #include <stdlib.h>
14 #include "simgrid/msg.h"
15 #include "xbt/log.h"
16 #include "xbt/asserts.h"
17
18 XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test,
19                              "Messages specific for GPU msg example");
20
21
22 /** Main function */
23 int main(int argc, char *argv[])
24 {
25   msg_error_t res = MSG_OK;
26
27   MSG_init(&argc, argv);
28
29   msg_gpu_task_t mytask = NULL;
30
31   mytask = MSG_gpu_task_create("testTask", 2000.0, 20.0, 20.0);
32
33   XBT_INFO("GPU task %p was created", mytask);
34
35   return res != MSG_OK;
36 }