Vlasiator ebf0dd394 on dev (v5.4.0 + 1054 commits)
Loading...
Searching...
No Matches
gpu_acc_map.hpp
Go to the documentation of this file.
1/*
2 * This file is part of Vlasiator.
3 * Copyright 2010-2024 Finnish Meteorological Institute and University of Helsinki
4 *
5 * For details of usage, see the COPYING file and read the "Rules of the Road"
6 * at http://www.physics.helsinki.fi/vlasiator/
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License along
19 * with this program; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 */
22#ifndef GPU_ACC_MAP_H
23#define GPU_ACC_MAP_H
24
25#ifdef DEBUG_VLASIATOR
26 #ifndef DEBUG_ACC
27 #define DEBUG_ACC
28 #endif
29#endif
30
31#include <stdio.h>
32#include <stdlib.h>
33#include <string.h>
34#include "../common.h"
35#include "../definitions.h"
36#include "../object_wrapper.h"
37#include "../arch/gpu_base.hpp"
39#include "gpu_1d_pqm.hpp"
40#include "gpu_1d_ppm.hpp"
41#include "gpu_1d_plm.hpp"
42
43using namespace spatial_cell;
44
46 dccrg::Dccrg<spatial_cell::SpatialCell,dccrg::Cartesian_Geometry>& mpiGrid,
47 vector<CellID> &launchCells,
48 const uint popID,
49 const uint dimension,
50 const int Dacc,
51 const int Dother,
52 const size_t cumulativeOffset
53 );
54
55#endif
__global__ void vmesh::VelocityMesh **__restrict__ ColumnOffsets split::SplitVector< vmesh::GlobalID > Hashinator::Hashmap< vmesh::GlobalID, vmesh::LocalID > const uint *__restrict__ const Realf const int const int const Realf const Realf vmesh::LocalID vmesh::LocalID const uint cumulativeOffset
bool gpu_acc_map_1d(dccrg::Dccrg< spatial_cell::SpatialCell, dccrg::Cartesian_Geometry > &mpiGrid, vector< CellID > &launchCells, const uint popID, const uint dimension, const int Dacc, const int Dother, const size_t cumulativeOffset)
This function performs the semi-Lagrangian acceleration for a provided list of spatial cells,...