diff --git a/RTCP/Cobalt/GPUProc/src/OpenMP_Support.h b/RTCP/Cobalt/GPUProc/src/OpenMP_Support.h index 62b3f49340fa698eec042807303f6b26e0373d41..43b67270caaa3b26791452fab35eeaafae2037a3 100644 --- a/RTCP/Cobalt/GPUProc/src/OpenMP_Support.h +++ b/RTCP/Cobalt/GPUProc/src/OpenMP_Support.h @@ -18,8 +18,8 @@ //# //# $Id$ -#ifndef OPEN_MP_SUPPORT_H -#define OPEN_MP_SUPPORT_H +#ifndef LOFAR_GPUPROC_OPENMP_SUPPORT_H +#define LOFAR_GPUPROC_OPENMP_SUPPORT_H #include <omp.h> diff --git a/RTCP/Cobalt/GPUProc/src/cuda/CudaRuntimeCompiler.cc b/RTCP/Cobalt/GPUProc/src/cuda/CudaRuntimeCompiler.cc index ccae44f309d98de1c0c6de1f1b03b33cae805426..c2034948418d677c11a0aaa8924ccceb09fcbb11 100644 --- a/RTCP/Cobalt/GPUProc/src/cuda/CudaRuntimeCompiler.cc +++ b/RTCP/Cobalt/GPUProc/src/cuda/CudaRuntimeCompiler.cc @@ -1,3 +1,25 @@ +//# CudaRuntimeCompiler.cc +//# Copyright (C) 2013 ASTRON (Netherlands Institute for Radio Astronomy) +//# P.O. Box 2, 7990 AA Dwingeloo, The Netherlands +//# +//# This file is part of the LOFAR software suite. +//# The LOFAR software suite is free software: you can redistribute it and/or +//# modify it under the terms of the GNU General Public License as published +//# by the Free Software Foundation, either version 3 of the License, or +//# (at your option) any later version. +//# +//# The LOFAR software suite 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 for more details. +//# +//# You should have received a copy of the GNU General Public License along +//# with the LOFAR software suite. If not, see <http://www.gnu.org/licenses/>. +//# +//# $Id$ + +#include <lofar_config.h> + #include "cuda_runtime.h" #include "device_launch_parameters.h" @@ -111,3 +133,4 @@ namespace CudaRuntimeCompiler return CudaRuntimeCompiler::compileToPtx(pathToCuFile, defaultFlags(), defaultDefinitions()); }; } + diff --git a/RTCP/Cobalt/GPUProc/src/cuda/CudaRuntimeCompiler.h b/RTCP/Cobalt/GPUProc/src/cuda/CudaRuntimeCompiler.h index 446d6a637d980b8b8737ea24cb5d96e50cb4a886..2e4225e0932752df79821cb435ed89b59d0fe6cb 100644 --- a/RTCP/Cobalt/GPUProc/src/cuda/CudaRuntimeCompiler.h +++ b/RTCP/Cobalt/GPUProc/src/cuda/CudaRuntimeCompiler.h @@ -1,3 +1,26 @@ +//# CudaRuntimeCompiler.h +//# Copyright (C) 2013 ASTRON (Netherlands Institute for Radio Astronomy) +//# P.O. Box 2, 7990 AA Dwingeloo, The Netherlands +//# +//# This file is part of the LOFAR software suite. +//# The LOFAR software suite is free software: you can redistribute it and/or +//# modify it under the terms of the GNU General Public License as published +//# by the Free Software Foundation, either version 3 of the License, or +//# (at your option) any later version. +//# +//# The LOFAR software suite 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 for more details. +//# +//# You should have received a copy of the GNU General Public License along +//# with the LOFAR software suite. If not, see <http://www.gnu.org/licenses/>. +//# +//# $Id$ + +#ifndef LOFAR_GPUPROC_CUDA_CUDA_RUNTIME_COMPILER_H +#define LOFAR_GPUPROC_CUDA_CUDA_RUNTIME_COMPILER_H + #include "cuda_runtime.h" #include "device_launch_parameters.h" @@ -37,3 +60,6 @@ namespace CudaRuntimeCompiler // overloaded function. Use the path and default flags and definitions to call nvcc std::string compileToPtx(const std::string& pathToCuFile); } + +#endif + diff --git a/RTCP/Cobalt/GPUProc/src/cuda/FIR_Filter.cu b/RTCP/Cobalt/GPUProc/src/cuda/FIR_Filter.cu index 12cc5786f169c8fe8ed9ebb67621e37910a17817..e60d5dcfec577328545c1b61ac9e9daf194575b8 100644 --- a/RTCP/Cobalt/GPUProc/src/cuda/FIR_Filter.cu +++ b/RTCP/Cobalt/GPUProc/src/cuda/FIR_Filter.cu @@ -1,3 +1,22 @@ +//# FIR_Filter.cu +//# Copyright (C) 2013 ASTRON (Netherlands Institute for Radio Astronomy) +//# P.O. Box 2, 7990 AA Dwingeloo, The Netherlands +//# +//# This file is part of the LOFAR software suite. +//# The LOFAR software suite is free software: you can redistribute it and/or +//# modify it under the terms of the GNU General Public License as published +//# by the Free Software Foundation, either version 3 of the License, or +//# (at your option) any later version. +//# +//# The LOFAR software suite 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 for more details. +//# +//# You should have received a copy of the GNU General Public License along +//# with the LOFAR software suite. If not, see <http://www.gnu.org/licenses/>. +//# +//# $Id$ #include "cuda_runtime.h" #include <cuda.h> diff --git a/RTCP/Cobalt/GPUProc/src/cuda/cuPrintf.cu b/RTCP/Cobalt/GPUProc/src/cuda/cuPrintf.cu index f06653f2db9b418ccf4bda7096b3dc0514b8d027..5f346ada9cf9ed5021a6a386caee34f097cb2b6c 100644 --- a/RTCP/Cobalt/GPUProc/src/cuda/cuPrintf.cu +++ b/RTCP/Cobalt/GPUProc/src/cuda/cuPrintf.cu @@ -877,3 +877,4 @@ extern "C" cudaError_t cudaPrintfDisplay(void *outputFP, bool showThreadID) #undef CUPRINTF_SM11_MAGIC #endif + diff --git a/RTCP/Cobalt/GPUProc/src/cuda/cuPrintf.cuh b/RTCP/Cobalt/GPUProc/src/cuda/cuPrintf.cuh index cf3fe48688a23fbdb569e32de289fc34bd5a148c..6cc27e38e68c65704734616ed374adfabfadeaf7 100644 --- a/RTCP/Cobalt/GPUProc/src/cuda/cuPrintf.cuh +++ b/RTCP/Cobalt/GPUProc/src/cuda/cuPrintf.cuh @@ -160,3 +160,4 @@ extern "C" void cudaPrintfEnd(); extern "C" cudaError_t cudaPrintfDisplay(void *outputFP=NULL, bool showThreadID=false); #endif // CUPRINTF_H + diff --git a/RTCP/Cobalt/GPUProc/src/cuda/gpu_wrapper.tcc b/RTCP/Cobalt/GPUProc/src/cuda/gpu_wrapper.tcc index 90d7d15e451bee0817cc3ecb5454eeadef2f8a17..8544d775b978eaea0732829e079eb9c342e15f0e 100644 --- a/RTCP/Cobalt/GPUProc/src/cuda/gpu_wrapper.tcc +++ b/RTCP/Cobalt/GPUProc/src/cuda/gpu_wrapper.tcc @@ -50,3 +50,4 @@ namespace LOFAR } // namespace LOFAR #endif + diff --git a/RTCP/Cobalt/GPUProc/test/Kernels/FIR_FilterTest.cc b/RTCP/Cobalt/GPUProc/test/Kernels/FIR_FilterTest.cc index b84e127ba666aba767fb2e394b9c96ac347d4ca5..8ef2016592bf2e19575952cb15779df092fa16ba 100644 --- a/RTCP/Cobalt/GPUProc/test/Kernels/FIR_FilterTest.cc +++ b/RTCP/Cobalt/GPUProc/test/Kernels/FIR_FilterTest.cc @@ -1,4 +1,4 @@ -//# RTCP_UnitTest.cc +//# FIR_FilterTest.cc //# Copyright (C) 2013 ASTRON (Netherlands Institute for Radio Astronomy) //# P.O. Box 2, 7990 AA Dwingeloo, The Netherlands //# diff --git a/RTCP/Cobalt/GPUProc/test/cuda/tCudaRuntimeCompiler.cc b/RTCP/Cobalt/GPUProc/test/cuda/tCudaRuntimeCompiler.cc index 67bb3a4925890f1a0302e0cbc3719511c0b5c278..4e4a3e3fd337e98011fcc8bc53334c69c3335bc1 100644 --- a/RTCP/Cobalt/GPUProc/test/cuda/tCudaRuntimeCompiler.cc +++ b/RTCP/Cobalt/GPUProc/test/cuda/tCudaRuntimeCompiler.cc @@ -1,3 +1,25 @@ +//# tCudaRuntimeCompiler.cc +//# Copyright (C) 2013 ASTRON (Netherlands Institute for Radio Astronomy) +//# P.O. Box 2, 7990 AA Dwingeloo, The Netherlands +//# +//# This file is part of the LOFAR software suite. +//# The LOFAR software suite is free software: you can redistribute it and/or +//# modify it under the terms of the GNU General Public License as published +//# by the Free Software Foundation, either version 3 of the License, or +//# (at your option) any later version. +//# +//# The LOFAR software suite 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 for more details. +//# +//# You should have received a copy of the GNU General Public License along +//# with the LOFAR software suite. If not, see <http://www.gnu.org/licenses/>. +//# +//# $Id$ + +#include <lofar_config.h> + #include <string> #include <GPUProc/cuda/CudaRuntimeCompiler.h> diff --git a/RTCP/Cobalt/GPUProc/test/cuda/tCudaRuntimeCompiler.in_.cu b/RTCP/Cobalt/GPUProc/test/cuda/tCudaRuntimeCompiler.in_.cu index 087ec8b1ac8e8a660c392c4d5b8c57a5b11923d7..3fcbc7bdc7818479bdb5c4be2ab48d5d686c5052 100644 --- a/RTCP/Cobalt/GPUProc/test/cuda/tCudaRuntimeCompiler.in_.cu +++ b/RTCP/Cobalt/GPUProc/test/cuda/tCudaRuntimeCompiler.in_.cu @@ -1,3 +1,23 @@ +//# tCudaRuntimeCompiler.in_.cu +//# Copyright (C) 2013 ASTRON (Netherlands Institute for Radio Astronomy) +//# P.O. Box 2, 7990 AA Dwingeloo, The Netherlands +//# +//# This file is part of the LOFAR software suite. +//# The LOFAR software suite is free software: you can redistribute it and/or +//# modify it under the terms of the GNU General Public License as published +//# by the Free Software Foundation, either version 3 of the License, or +//# (at your option) any later version. +//# +//# The LOFAR software suite 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 for more details. +//# +//# You should have received a copy of the GNU General Public License along +//# with the LOFAR software suite. If not, see <http://www.gnu.org/licenses/>. +//# +//# $Id$ + extern "C" { __global__ void FIR_filter(void *filteredDataPtr) { @@ -7,4 +27,5 @@ extern "C" { int test = 20; return; } -} \ No newline at end of file +} +