Commit ea832ee9 by Christian Kern

Adjust pathes for snippets

parent 2e9fff9a
......@@ -25,10 +25,10 @@
*/
#include <embb/mtapi/c/mtapi.h>
#include "mtapi_network_c_header-snippet.h"
#include "mtapi/mtapi_network_c_header-snippet.h"
#include <embb/base/c/internal/unused.h>
#include "mtapi_check_status-snippet.h"
#include "mtapi/mtapi_check_status-snippet.h"
#define NETWORK_DOMAIN 1
#define NETWORK_LOCAL_NODE 3
......@@ -36,7 +36,7 @@
#define NETWORK_REMOTE_NODE 3
#define NETWORK_REMOTE_JOB 4
#include "mtapi_network_c_action_function-snippet.h"
#include "mtapi/mtapi_network_c_action_function-snippet.h"
void RunMTAPI_C_Network() {
mtapi_status_t status;
......@@ -61,13 +61,13 @@ void RunMTAPI_C_Network() {
&status);
MTAPI_CHECK_STATUS(status);
#include "mtapi_network_c_plugin_initialize-snippet.h"
#include "mtapi/mtapi_network_c_plugin_initialize-snippet.h"
MTAPI_CHECK_STATUS(status);
#include "mtapi_network_c_remote_action_create-snippet.h"
#include "mtapi/mtapi_network_c_remote_action_create-snippet.h"
MTAPI_CHECK_STATUS(status);
#include "mtapi_network_c_local_action_create-snippet.h"
#include "mtapi/mtapi_network_c_local_action_create-snippet.h"
MTAPI_CHECK_STATUS(status);
job = mtapi_job_get(NETWORK_LOCAL_JOB, NETWORK_DOMAIN, &status);
......@@ -94,7 +94,7 @@ void RunMTAPI_C_Network() {
}
}
#include "mtapi_network_c_plugin_finalize-snippet.h"
#include "mtapi/mtapi_network_c_plugin_finalize-snippet.h"
MTAPI_CHECK_STATUS(status);
mtapi_finalize(&status);
......
......@@ -25,16 +25,16 @@
*/
#include <embb/mtapi/c/mtapi.h>
#include "mtapi_opencl_c_header-snippet.h"
#include "mtapi/mtapi_opencl_c_header-snippet.h"
#include "mtapi_check_status-snippet.h"
#include "mtapi/mtapi_check_status-snippet.h"
#define OPENCL_DOMAIN 1
#define OPENCL_NODE 2
#define OPENCL_JOB 2
// OpenCL Kernel Function for element by element vector addition
#include "mtapi_opencl_c_kernel-snippet.h"
#include "mtapi/mtapi_opencl_c_kernel-snippet.h"
void RunMTAPI_C_OpenCL() {
mtapi_status_t status;
......@@ -59,10 +59,10 @@ void RunMTAPI_C_OpenCL() {
&status);
MTAPI_CHECK_STATUS(status);
#include "mtapi_opencl_c_plugin_initialize-snippet.h"
#include "mtapi/mtapi_opencl_c_plugin_initialize-snippet.h"
MTAPI_CHECK_STATUS(status);
#include "mtapi_opencl_c_action_create-snippet.h"
#include "mtapi/mtapi_opencl_c_action_create-snippet.h"
MTAPI_CHECK_STATUS(status);
status = MTAPI_ERR_UNKNOWN;
......@@ -90,7 +90,7 @@ void RunMTAPI_C_OpenCL() {
}
}
#include "mtapi_opencl_c_plugin_finalize-snippet.h"
#include "mtapi/mtapi_opencl_c_plugin_finalize-snippet.h"
MTAPI_CHECK_STATUS(status);
mtapi_finalize(&status);
......
......@@ -42,15 +42,15 @@
#define PLUGIN_NODE_ID 1
#define PLUGIN_JOB_ID 1
#include "mtapi_check_status-snippet.h"
#include "mtapi/mtapi_check_status-snippet.h"
#include "mtapi_c_plugin_task_schedule-snippet.h"
#include "mtapi/mtapi_c_plugin_task_schedule-snippet.h"
#include "mtapi_c_plugin_task_start_cb-snippet.h"
#include "mtapi/mtapi_c_plugin_task_start_cb-snippet.h"
#include "mtapi_c_plugin_task_cancel_cb-snippet.h"
#include "mtapi/mtapi_c_plugin_task_cancel_cb-snippet.h"
#include "mtapi_c_plugin_action_finalize_cb-snippet.h"
#include "mtapi/mtapi_c_plugin_action_finalize_cb-snippet.h"
void RunMTAPI_C_Plugin() {
mtapi_status_t status;
......@@ -66,13 +66,13 @@ void RunMTAPI_C_Plugin() {
&status);
MTAPI_CHECK_STATUS(status);
#include "mtapi_c_plugin_action_create-snippet.h"
#include "mtapi/mtapi_c_plugin_action_create-snippet.h"
MTAPI_CHECK_STATUS(status);
#include "mtapi_c_plugin_get_job-snippet.h"
#include "mtapi/mtapi_c_plugin_get_job-snippet.h"
MTAPI_CHECK_STATUS(status);
#include "mtapi_c_plugin_task_start-snippet.h"
#include "mtapi/mtapi_c_plugin_task_start-snippet.h"
MTAPI_CHECK_STATUS(status);
mtapi_task_wait(task, MTAPI_INFINITE, &status);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment