@@ -68,10 +68,10 @@ TEST_CASE("Standard checks of " ALPAKA_TYPE_ALIAS_NAME(alpakaTestKernel), s_tag)
6868 // buffer size
6969 constexpr size_t size = 1024 * 1024 ;
7070
71- // allocate input and output host buffers
72- auto in1_h = cms::alpakatools::make_host_buffer<float []>(size);
73- auto in2_h = cms::alpakatools::make_host_buffer<float []>(size);
74- auto out_h = cms::alpakatools::make_host_buffer<float []>(size);
71+ // allocate input and output host buffers in pinned memory accessible by the Platform devices
72+ auto in1_h = cms::alpakatools::make_host_buffer<float [], Platform >(size);
73+ auto in2_h = cms::alpakatools::make_host_buffer<float [], Platform >(size);
74+ auto out_h = cms::alpakatools::make_host_buffer<float [], Platform >(size);
7575
7676 // fill the input buffers with random data, and the output buffer with zeros
7777 for (size_t i = 0 ; i < size; ++i) {
@@ -158,10 +158,10 @@ TEST_CASE("Standard checks of " ALPAKA_TYPE_ALIAS_NAME(alpakaTestKernel3D), s_ta
158158 constexpr Vec3D ndsize = {50 , 125 , 16 };
159159 constexpr size_t size = ndsize.prod ();
160160
161- // allocate input and output host buffers
162- auto in1_h = cms::alpakatools::make_host_buffer<float []>(size);
163- auto in2_h = cms::alpakatools::make_host_buffer<float []>(size);
164- auto out_h = cms::alpakatools::make_host_buffer<float []>(size);
161+ // allocate input and output host buffers in pinned memory accessible by the Platform devices
162+ auto in1_h = cms::alpakatools::make_host_buffer<float [], Platform >(size);
163+ auto in2_h = cms::alpakatools::make_host_buffer<float [], Platform >(size);
164+ auto out_h = cms::alpakatools::make_host_buffer<float [], Platform >(size);
165165
166166 // fill the input buffers with random data, and the output buffer with zeros
167167 for (size_t i = 0 ; i < size; ++i) {
0 commit comments