mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-31 09:44:07 -05:00
Fixes for new make_view and copy_to_gpu
This commit is contained in:
1 parent
3fc021b127
commit
ae54428249
1 file changed
+1
-2
@@ -1,4 +1,3 @@
|
||||
#include "opm/simulators/linalg/gpuistl_hip/GpuBuffer.hpp"
|
||||
#include <config.h>
|
||||
|
||||
#define BOOST_TEST_MODULE TestGpuPvt
|
||||
@@ -173,7 +172,7 @@ BOOST_FIXTURE_TEST_CASE(TestEvaluateUniformTabulated2DFunctionOnGpu, Fixture) {
|
||||
Opm::UniformTabulated2DFunction<double> cpuTab(1.0, 6.0, 3, 1.0, 6.0, 2, tabData);
|
||||
|
||||
// Move data to GPU buffer and create a view for GPU operations
|
||||
Opm::UniformTabulated2DFunction<double, GpuB> gpuBufTab = Opm::gpuistl::copy_to_gpu(cpuTab);
|
||||
Opm::UniformTabulated2DFunction<double, Opm::gpuistl::GpuBuffer> gpuBufTab = Opm::gpuistl::copy_to_gpu(cpuTab);
|
||||
GpuTab gpuViewTab = Opm::gpuistl::make_view(gpuBufTab);
|
||||
|
||||
// Evaluation points on the CPU
|
||||
|
||||
Reference in new issue
Block a user