|
@@ -1,7 +1,7 @@
|
|
|
/* StarPU --- Runtime system for heterogeneous multicore architectures.
|
|
|
*
|
|
|
* Copyright (C) 2010, 2012-2014 Université de Bordeaux 1
|
|
|
- * Copyright (C) 2010, 2011, 2012 Centre National de la Recherche Scientifique
|
|
|
+ * Copyright (C) 2010, 2011, 2012, 2014 Centre National de la Recherche Scientifique
|
|
|
*
|
|
|
* StarPU is free software; you can redistribute it and/or modify
|
|
|
* it under the terms of the GNU Lesser General Public License as published by
|
|
@@ -28,8 +28,6 @@ static starpu_data_handle_t handle;
|
|
|
#ifdef STARPU_USE_CUDA
|
|
|
static void neutral_cuda_kernel(void *descr[], void *arg)
|
|
|
{
|
|
|
- STARPU_SKIP_IF_VALGRIND;
|
|
|
-
|
|
|
unsigned *dst = (unsigned *)STARPU_VARIABLE_GET_PTR(descr[0]);
|
|
|
|
|
|
/* This is a dummy technique of course */
|
|
@@ -42,8 +40,6 @@ static void neutral_cuda_kernel(void *descr[], void *arg)
|
|
|
#ifdef STARPU_USE_OPENCL
|
|
|
static void neutral_opencl_kernel(void *descr[], void *arg)
|
|
|
{
|
|
|
- STARPU_SKIP_IF_VALGRIND;
|
|
|
-
|
|
|
unsigned h_dst = 0;
|
|
|
cl_mem d_dst = (cl_mem)STARPU_VARIABLE_GET_PTR(descr[0]);
|
|
|
|
|
@@ -59,8 +55,6 @@ static void neutral_opencl_kernel(void *descr[], void *arg)
|
|
|
|
|
|
static void neutral_cpu_kernel(void *descr[], void *arg)
|
|
|
{
|
|
|
- STARPU_SKIP_IF_VALGRIND;
|
|
|
-
|
|
|
unsigned *dst = (unsigned *)STARPU_VARIABLE_GET_PTR(descr[0]);
|
|
|
*dst = 0;
|
|
|
}
|
|
@@ -86,8 +80,6 @@ static struct starpu_codelet neutral_cl =
|
|
|
/* dummy OpenCL implementation */
|
|
|
static void increment_opencl_kernel(void *descr[], void *cl_arg STARPU_ATTRIBUTE_UNUSED)
|
|
|
{
|
|
|
- STARPU_SKIP_IF_VALGRIND;
|
|
|
-
|
|
|
cl_mem d_token = (cl_mem)STARPU_VARIABLE_GET_PTR(descr[0]);
|
|
|
unsigned h_token;
|
|
|
|
|
@@ -105,8 +97,6 @@ static void increment_opencl_kernel(void *descr[], void *cl_arg STARPU_ATTRIBUTE
|
|
|
#ifdef STARPU_USE_CUDA
|
|
|
static void increment_cuda_kernel(void *descr[], void *arg)
|
|
|
{
|
|
|
- STARPU_SKIP_IF_VALGRIND;
|
|
|
-
|
|
|
unsigned *tokenptr = (unsigned *)STARPU_VARIABLE_GET_PTR(descr[0]);
|
|
|
unsigned host_token;
|
|
|
|
|
@@ -123,8 +113,6 @@ static void increment_cuda_kernel(void *descr[], void *arg)
|
|
|
|
|
|
static void increment_cpu_kernel(void *descr[], void *arg)
|
|
|
{
|
|
|
- STARPU_SKIP_IF_VALGRIND;
|
|
|
-
|
|
|
unsigned *tokenptr = (unsigned *)STARPU_VARIABLE_GET_PTR(descr[0]);
|
|
|
*tokenptr = *tokenptr + 1;
|
|
|
}
|
|
@@ -144,7 +132,7 @@ static struct starpu_codelet increment_cl =
|
|
|
|
|
|
int main(int argc, char **argv)
|
|
|
{
|
|
|
- unsigned *pvar;
|
|
|
+ unsigned *pvar = NULL;
|
|
|
int ret;
|
|
|
|
|
|
ret = starpu_init(NULL);
|
|
@@ -209,6 +197,5 @@ enodev:
|
|
|
|
|
|
err:
|
|
|
starpu_shutdown();
|
|
|
- STARPU_RETURN(EXIT_FAILURE);
|
|
|
-
|
|
|
+ return EXIT_FAILURE;
|
|
|
}
|