|
@@ -1,7 +1,7 @@
|
|
/* StarPU --- Runtime system for heterogeneous multicore architectures.
|
|
/* StarPU --- Runtime system for heterogeneous multicore architectures.
|
|
*
|
|
*
|
|
* Copyright (C) 2009, 2010 Université de Bordeaux
|
|
* Copyright (C) 2009, 2010 Université de Bordeaux
|
|
- * Copyright (C) 2010, 2012 CNRS
|
|
|
|
|
|
+ * Copyright (C) 2010, 2012, 2017 CNRS
|
|
*
|
|
*
|
|
* StarPU is free software; you can redistribute it and/or modify
|
|
* 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
|
|
* it under the terms of the GNU Lesser General Public License as published by
|
|
@@ -17,7 +17,7 @@
|
|
|
|
|
|
#include <starpu.h>
|
|
#include <starpu.h>
|
|
|
|
|
|
-static __global__ void cuda_incrementer(unsigned *token)
|
|
|
|
|
|
+static __global__ void cuda_incrementer(int *token)
|
|
{
|
|
{
|
|
(*token)++;
|
|
(*token)++;
|
|
}
|
|
}
|
|
@@ -25,7 +25,7 @@ static __global__ void cuda_incrementer(unsigned *token)
|
|
extern "C" void increment_cuda(void *descr[], void *_args)
|
|
extern "C" void increment_cuda(void *descr[], void *_args)
|
|
{
|
|
{
|
|
(void) _args;
|
|
(void) _args;
|
|
- unsigned *tokenptr = (unsigned *)STARPU_VECTOR_GET_PTR(descr[0]);
|
|
|
|
|
|
+ int *tokenptr = (int *)STARPU_VECTOR_GET_PTR(descr[0]);
|
|
|
|
|
|
cuda_incrementer<<<1,1, 0, starpu_cuda_get_local_stream()>>>(tokenptr);
|
|
cuda_incrementer<<<1,1, 0, starpu_cuda_get_local_stream()>>>(tokenptr);
|
|
cudaStreamSynchronize(starpu_cuda_get_local_stream());
|
|
cudaStreamSynchronize(starpu_cuda_get_local_stream());
|