Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ jobs:
with:
path: "**/cpm_modules"
key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }}
- run: sudo apt update && sudo apt install libboost-all-dev
- run: |
cmake -S. -Bbuild \
-Dalpaka_ACC_CPU_B_OMP2_T_SEQ_ENABLE:BOOL=ON \
Expand Down
8 changes: 0 additions & 8 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ Install
- *Arch Linux:* `sudo pacman -S base-devel`
- `alpaka` 1.2.0
- included as git submodule
- `boost` >= 1.65.1
- dependency of alpaka
- *Debian/Ubuntu:* `sudo apt-get install libboost-dev libboost-program-options-dev`
- *Arch Linux:* `sudo pacman -S boost`
- or download from [http://www.boost.org/](http://sourceforge.net/projects/boost/files/boost/1.55.0/boost_1_55_0.tar.gz/download)
- `CMake` >= 3.15
- *Debian/Ubuntu:* `sudo apt-get install cmake file cmake-curses-gui`
- *Arch Linux:* `sudo pacman -S cmake`
Expand Down Expand Up @@ -44,9 +39,6 @@ Linking to your Project
To use mallocMC in your project, you must include the header `mallocMC/mallocMC.hpp` and
add the correct include path.

Because we are linking to Boost and CUDA, the following **external dependencies** must be linked:
- `-lboost`

If you are using CMake you can download our `FindmallocMC.cmake` module with
```bash
wget https://raw.githubusercontent.com/ComputationalRadiationPhysics/cmake-modules/dev/FindmallocMC.cmake
Expand Down
2 changes: 1 addition & 1 deletion cmake/package-lock.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
CPMDeclarePackage(alpaka
NAME alpaka
# This is a development version slightly after 1.2.0 because we needed a patch
GIT_TAG 95c0bf2397255a89467bb5c151a96367ad1d1f93
GIT_TAG 961062dfbc48679c1105aaad533224c073f0f429
GITHUB_REPOSITORY alpaka-group/alpaka
OPTIONS
"alpaka_CXX_STANDARD 20;alpaka_INSTALL ON"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ namespace mallocMC::CreationPolicies::FlatterScatterAlloc
auto const index = pageIndex(pointer);
if(index >= static_cast<int32_t>(numPages()) || index < 0)
{
#if (!defined(NDEBUG) && !BOOST_LANG_CUDA && !BOOST_LANG_HIP)
#if (!defined(NDEBUG) && !ALPAKA_LANG_CUDA && !ALPAKA_LANG_HIP)
throw std::runtime_error{
"Attempted to destroy an invalid pointer! Pointer does not point to any page."};
#endif // NDEBUG
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,15 +151,15 @@ namespace mallocMC::CreationPolicies::FlatterScatterAlloc
{
if(chunkSize == 0)
{
#if (!defined(NDEBUG) && !BOOST_LANG_CUDA && !BOOST_LANG_HIP)
#if (!defined(NDEBUG) && !ALPAKA_LANG_CUDA && !ALPAKA_LANG_HIP)
throw std::runtime_error{
"Attempted to destroy a pointer with chunkSize==0. Likely this page was recently "
"(and potentially pre-maturely) freed."};
#endif // NDEBUG
return;
}
auto chunkIndex = chunkNumberOf(pointer);
#if (!defined(NDEBUG) && !BOOST_LANG_CUDA && !BOOST_LANG_HIP)
#if (!defined(NDEBUG) && !ALPAKA_LANG_CUDA && !ALPAKA_LANG_HIP)
if(not isValid(acc, chunkIndex))
{
throw std::runtime_error{"Attempted to destroy an invalid pointer! Either the pointer does not point "
Expand Down
2 changes: 1 addition & 1 deletion include/mallocMC/oOMPolicies/BadAllocException.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ namespace mallocMC
ALPAKA_FN_ACC
static auto handleOOM(void* mem) -> void*
{
#if BOOST_LANG_CUDA || BOOST_COMP_HIP
#if ALPAKA_LANG_CUDA || ALPAKA_COMP_HIP
// #if __CUDA_ARCH__ < 350
# define PM_EXCEPTIONS_NOT_SUPPORTED_HERE
// #endif
Expand Down
2 changes: 1 addition & 1 deletion test/multithreaded/source/AccessBlock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
#include <alpaka/example/ExampleDefaultAcc.hpp>
#include <alpaka/kernel/Traits.hpp>
#include <alpaka/mem/alloc/Traits.hpp>
#include <alpaka/mem/buf/BufCpu.hpp>
#include <alpaka/mem/buf/Traits.hpp>
#include <alpaka/mem/buf/cpu/BufCpu.hpp>
#include <alpaka/mem/view/Traits.hpp>
#include <alpaka/mem/view/ViewPlainPtr.hpp>
#include <alpaka/platform/PlatformCpu.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/multithreaded/source/Scatter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
#include <alpaka/example/ExampleDefaultAcc.hpp>
#include <alpaka/kernel/Traits.hpp>
#include <alpaka/mem/alloc/Traits.hpp>
#include <alpaka/mem/buf/BufCpu.hpp>
#include <alpaka/mem/buf/Traits.hpp>
#include <alpaka/mem/buf/cpu/BufCpu.hpp>
#include <alpaka/mem/view/Traits.hpp>
#include <alpaka/mem/view/ViewPlainPtr.hpp>
#include <alpaka/platform/PlatformCpu.hpp>
Expand Down
4 changes: 2 additions & 2 deletions test/unit/source/AccessBlock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ TEMPLATE_LIST_TEST_CASE("AccessBlock", "", AccessBlocks)
// the bit mask. Thus, the following test would corrupt the bit mask, if we were to allocate this in
// chunked mode.

#if (!defined(NDEBUG) && !BOOST_LANG_CUDA && !BOOST_LANG_HIP)
#if (!defined(NDEBUG) && !ALPAKA_LANG_CUDA && !ALPAKA_LANG_HIP)
REQUIRE(sizeof(BitMaskStorageType<>) > 1U);
auto localChunkSize = pageSize - 1U;
auto slots = accessBlock.getAvailableSlots(accSerial, localChunkSize);
Expand Down Expand Up @@ -474,7 +474,7 @@ TEMPLATE_LIST_TEST_CASE("AccessBlock", "", AccessBlocks)

SECTION("no invalid pointer but throws instead.")
{
#if (!defined(NDEBUG) && !BOOST_LANG_CUDA && !BOOST_LANG_HIP)
#if (!defined(NDEBUG) && !ALPAKA_LANG_CUDA && !ALPAKA_LANG_HIP)
pointer = nullptr;
CHECK_THROWS(
accessBlock.destroy(accSerial, pointer),
Expand Down
2 changes: 1 addition & 1 deletion test/unit/source/PageInterpretation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ TEST_CASE("PageInterpretation.destroy")
PageInterpretation<pageSize> page{data, chunkSize};
auto* pointer = page.create(accSerial);

#if (!defined(NDEBUG) && !BOOST_LANG_CUDA && !BOOST_LANG_HIP)
#if (!defined(NDEBUG) && !ALPAKA_LANG_CUDA && !ALPAKA_LANG_HIP)
SECTION("throws if given an invalid pointer.")
{
pointer = nullptr;
Expand Down
Loading