Skip to content

Commit 2657763

Browse files
committed
Merge pull request ComputationalRadiationPhysics#902 from psychocoderHPC/topic-addMappingHostFlag
add host support for kernel mapper
2 parents fea3499 + cb8e2c0 commit 2657763

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Diff for: src/libPMacc/include/mappings/kernel/AreaMapping.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2013 Felix Schmitt, Heiko Burau, Rene Widera
2+
* Copyright 2013-2015 Felix Schmitt, Heiko Burau, Rene Widera
33
*
44
* This file is part of libPMacc.
55
*
@@ -73,7 +73,7 @@ namespace PMacc
7373
* @param realSuperCellIdx current SuperCell index (block index)
7474
* @return mapped SuperCell index
7575
*/
76-
DINLINE DataSpace<DIM> getSuperCellIndex(const DataSpace<DIM>& realSuperCellIdx) const
76+
HDINLINE DataSpace<DIM> getSuperCellIndex(const DataSpace<DIM>& realSuperCellIdx) const
7777
{
7878
return AreaMappingMethods<areaType, DIM>::getBlockIndex(*this,
7979
this->getGridSuperCells(),

Diff for: src/libPMacc/include/mappings/kernel/ExchangeMapping.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2013 Felix Schmitt, Heiko Burau, Rene Widera
2+
* Copyright 2013-2015 Felix Schmitt, Heiko Burau, Rene Widera
33
*
44
* This file is part of libPMacc.
55
*
@@ -97,7 +97,7 @@ namespace PMacc
9797
* @param realSuperCellIdx current SuperCell index (block index)
9898
* @return mapped SuperCell index
9999
*/
100-
DINLINE DataSpace<DIM> getSuperCellIndex(const DataSpace<DIM>& realSuperCellIdx) const
100+
HDINLINE DataSpace<DIM> getSuperCellIndex(const DataSpace<DIM>& realSuperCellIdx) const
101101
{
102102
return ExchangeMappingMethods<areaType, DIM>::getBlockIndex(
103103
*this,

Diff for: src/libPMacc/include/mappings/kernel/StrideMapping.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2013 Felix Schmitt, Heiko Burau, Rene Widera
2+
* Copyright 2013-2015 Felix Schmitt, Heiko Burau, Rene Widera
33
*
44
* This file is part of libPMacc.
55
*
@@ -74,7 +74,7 @@ class StrideMapping<areaType, stride, baseClass<DIM, SuperCellSize_> > : public
7474
* @param realSuperCellIdx current SuperCell index (block index)
7575
* @return mapped SuperCell index
7676
*/
77-
DINLINE DataSpace<DIM> getSuperCellIndex(const DataSpace<DIM>& realSuperCellIdx) const
77+
HDINLINE DataSpace<DIM> getSuperCellIndex(const DataSpace<DIM>& realSuperCellIdx) const
7878
{
7979
const DataSpace<DIM> blockId((realSuperCellIdx * (int)Stride) + offset);
8080
return StrideMappingMethods<areaType, DIM>::shift(*this, blockId);

0 commit comments

Comments
 (0)