Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of git+ssh://scm.gforge.inria.fr/gitroot/simgrid/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 "simgrid/msg.h"
13
14 XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test, "Messages specific for GPU msg example");
15
16 int main(int argc, char *argv[])
17 {
18   msg_error_t res = MSG_OK;
19
20   MSG_init(&argc, argv);
21
22   msg_gpu_task_t mytask = NULL;
23
24   mytask = MSG_gpu_task_create("testTask", 2000.0, 20.0, 20.0);
25
26   XBT_INFO("GPU task %p was created", mytask);
27
28   return res != MSG_OK;
29 }