|
Kokkos Core Kernels Package
Version of the Day
|
00001 /* 00002 //@HEADER 00003 // ************************************************************************ 00004 // 00005 // Kokkos 00006 // Manycore Performance-Portable Multidimensional Arrays 00007 // 00008 // Copyright (2012) Sandia Corporation 00009 // 00010 // Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, 00011 // the U.S. Government retains certain rights in this software. 00012 // 00013 // Redistribution and use in source and binary forms, with or without 00014 // modification, are permitted provided that the following conditions are 00015 // met: 00016 // 00017 // 1. Redistributions of source code must retain the above copyright 00018 // notice, this list of conditions and the following disclaimer. 00019 // 00020 // 2. Redistributions in binary form must reproduce the above copyright 00021 // notice, this list of conditions and the following disclaimer in the 00022 // documentation and/or other materials provided with the distribution. 00023 // 00024 // 3. Neither the name of the Corporation nor the names of the 00025 // contributors may be used to endorse or promote products derived from 00026 // this software without specific prior written permission. 00027 // 00028 // THIS SOFTWARE IS PROVIDED BY SANDIA CORPORATION "AS IS" AND ANY 00029 // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00030 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 00031 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SANDIA CORPORATION OR THE 00032 // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 00033 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 00034 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 00035 // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 00036 // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 00037 // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 00038 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00039 // 00040 // Questions? Contact H. Carter Edwards (hcedwar@sandia.gov) 00041 // 00042 // ************************************************************************ 00043 //@HEADER 00044 */ 00045 00046 #ifndef KOKKOS_CORE_HPP 00047 #define KOKKOS_CORE_HPP 00048 00049 //---------------------------------------------------------------------------- 00050 // Include the execution space header files for the enabled execution spaces. 00051 00052 #include <Kokkos_Core_fwd.hpp> 00053 00054 #if defined( KOKKOS_HAVE_CUDA ) 00055 #include <Kokkos_Cuda.hpp> 00056 #endif 00057 00058 #if defined( KOKKOS_HAVE_OPENMP ) 00059 #include <Kokkos_OpenMP.hpp> 00060 #endif 00061 00062 #if defined( KOKKOS_HAVE_PTHREAD ) 00063 #include <Kokkos_Threads.hpp> 00064 #endif 00065 00066 #include <Kokkos_Serial.hpp> 00067 00068 #include <Kokkos_Pair.hpp> 00069 #include <Kokkos_View.hpp> 00070 #include <Kokkos_Vectorization.hpp> 00071 #include <Kokkos_Atomic.hpp> 00072 #include <Kokkos_hwloc.hpp> 00073 00074 //---------------------------------------------------------------------------- 00075 00076 namespace Kokkos { 00077 void initialize(); 00078 00079 void initialize(int& narg, char* arg[]); 00080 00081 void initialize(const int arg1); 00082 00083 void initialize(const int arg1, const int arg2); 00084 00085 void initialize(const int arg1, const int arg2, const int arg3); 00086 00087 void finalize(); 00088 00089 void fence(); 00090 } 00091 00092 #endif
1.7.6.1