From 0e8edbd098b1722ed0932b07395edd118480c071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Widera?= Date: Wed, 7 May 2014 17:43:56 +0200 Subject: [PATCH] fix TaskSetValue bug add missing `&` --- .../eventSystem/tasks/TaskSetValue.hpp | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/src/libPMacc/include/eventSystem/tasks/TaskSetValue.hpp b/src/libPMacc/include/eventSystem/tasks/TaskSetValue.hpp index b675b04385..8c5b84e443 100644 --- a/src/libPMacc/include/eventSystem/tasks/TaskSetValue.hpp +++ b/src/libPMacc/include/eventSystem/tasks/TaskSetValue.hpp @@ -1,22 +1,22 @@ /** * Copyright 2013-2014 Felix Schmitt, Heiko Burau, Rene Widera * - * This file is part of libPMacc. - * - * libPMacc is free software: you can redistribute it and/or modify - * it under the terms of of either the GNU General Public License or - * the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * libPMacc is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License and the GNU Lesser General Public License - * for more details. - * - * You should have received a copy of the GNU General Public License - * and the GNU Lesser General Public License along with libPMacc. - * If not, see . + * This file is part of libPMacc. + * + * libPMacc is free software: you can redistribute it and/or modify + * it under the terms of of either the GNU General Public License or + * the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * libPMacc is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License and the GNU Lesser General Public License + * for more details. + * + * You should have received a copy of the GNU General Public License + * and the GNU Lesser General Public License along with libPMacc. + * If not, see . */ #pragma once @@ -55,7 +55,7 @@ struct Value }; /** define access operation for pointer types - * + * * access first element of a pointer */ template @@ -74,7 +74,7 @@ struct Value */ template HDINLINE typename Value::value >::type& -getValue(T_Type value) +getValue(T_Type& value) { typedef Value::value > Functor; return Functor()(value); @@ -101,7 +101,7 @@ template class DeviceBuffer; /** Set all cells of a GridBuffer on the device to a given value - * + * * T_ValueType = data type (e.g. float, float2) * T_dim = dimension of the GridBuffer * T_isSmallValue = true if T_ValueType can be send via kernel parameter (on cuda T_ValueType must be smaller than 256 byte) @@ -187,8 +187,8 @@ class TaskSetValue : public TaskSetValueBase256 byte) - * - * This class use CUDA memcopy to copy a instance of T_ValueType to gpu and + * + * This class use CUDA memcopy to copy a instance of T_ValueType to gpu and * run a kernel which assign this value to all cells. */ template