Skip to content

Commit

Permalink
rename Platform to PlatformForMappedAlloc, as Platform exists already…
Browse files Browse the repository at this point in the history
… as a Trait
  • Loading branch information
Christian Kaever committed Sep 1, 2023
1 parent 18ba211 commit 10d5999
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/alpaka/mem/buf/Traits.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Copyright 2023 Alexander Matthes, Benjamin Worpitz, Andrea Bocci, Bernhard Manfred Gruber, Jan Stephan,
* Christian Kaever
* Christian Kaever
* SPDX-License-Identifier: MPL-2.0
*/

Expand Down Expand Up @@ -177,10 +177,10 @@ namespace alpaka
TPlatform const& platform,
TExtent const& extent = TExtent())
{
using Platform = Platform<TPlatform>;
if constexpr(hasMappedBufSupport<Platform>)
using PlatformForMappedAlloc = Platform<TPlatform>;
if constexpr(hasMappedBufSupport<PlatformForMappedAlloc>)
{
return allocMappedBuf<Platform, TElem, TIdx>(host, platform, extent);
return allocMappedBuf<PlatformForMappedAlloc, TElem, TIdx>(host, platform, extent);
}
else
{
Expand Down

0 comments on commit 10d5999

Please sign in to comment.