1 /* Copyright (c) 2007, 2008, 2009, 2010. 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.
16 #include "xbt/asserts.h"
18 XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test,
19 "Messages specific for GPU msg example");
23 int main(int argc, char *argv[])
25 MSG_error_t res = MSG_OK;
27 MSG_global_init(&argc, argv);
29 m_gpu_task_t mytask = NULL;
31 mytask = MSG_gpu_task_create("testTask", 2000.0, 20.0, 20.0);
33 XBT_INFO("GPU task %p was created", mytask);