1 /* Copyright (c) 2007-2010, 2012-2015. The SimGrid Team.
2 * All rights reserved. */
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. */
7 /** @addtogroup MSG_examples
9 * - <b>gpu/test_MSG_gpu_task_create.c</b> Example of use of the very experimental (for now) GPU resource.
12 #include "simgrid/msg.h"
14 XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test, "Messages specific for GPU msg example");
16 int main(int argc, char *argv[])
18 msg_error_t res = MSG_OK;
20 MSG_init(&argc, argv);
22 msg_gpu_task_t mytask = NULL;
24 mytask = MSG_gpu_task_create("testTask", 2000.0, 20.0, 20.0);
26 XBT_INFO("GPU task %p was created", mytask);