Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : change log category name
[simgrid.git] / examples / msg / gpu / test_MSG_gpu_task_create.c
1 /* Copyright (c) 2007, 2008, 2009, 2010. 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 #include <stdio.h>
8 #include <stdlib.h>
9 #include "msg/msg.h"
10 #include "xbt/log.h"
11 #include "xbt/asserts.h"
12
13 XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test,
14                              "Messages specific for GPU msg example");
15
16
17 /** Main function */
18 int main(int argc, char *argv[])
19 {
20   MSG_error_t res = MSG_OK;
21
22   MSG_global_init(&argc, argv);
23
24   m_gpu_task_t mytask = NULL;
25
26   mytask = MSG_gpu_task_create("testTask", 2000.0, 20.0, 20.0);
27
28
29
30   MSG_clean();
31
32   if (res == MSG_OK)
33     return 0;
34   else
35     return 1;
36 }                               /* end_of_main */