Skip to content

Commit e289365

Browse files
authored
fix #358 (#359)
fix a compilation error on AMD APU targets (e.g. Mi 300)
1 parent 0880026 commit e289365

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/global.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ template<typename T>
3939
IdefixArray1D<T> ConvertVectorToIdefixArray(std::vector<T> &inputVector) {
4040
IdefixArray1D<T> outArr = IdefixArray1D<T>("Vector",inputVector.size());
4141
IdefixHostArray1D<T> outArrHost;
42-
outArrHost = Kokkos::create_mirror_view(outArr);
42+
outArrHost = Kokkos::create_mirror_view(Kokkos::HostSpace(), outArr);
4343
for(int i = 0; i < inputVector.size() ; i++) {
4444
outArrHost(i) = inputVector[i];
4545
}

src/output/scalarField.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class ScalarField {
3333
h4Darray, var, Kokkos::ALL, Kokkos::ALL, Kokkos::ALL);
3434
return(arr3D);
3535
} else if(type==Device3D) {
36-
IdefixHostArray3D<real> arr3D = Kokkos::create_mirror(d3Darray);
36+
IdefixHostArray3D<real> arr3D = Kokkos::create_mirror(Kokkos::HostSpace(), d3Darray);
3737
Kokkos::deep_copy(arr3D,d3Darray);
3838
return(arr3D);
3939
} else if(type==Device4D) {

0 commit comments

Comments
 (0)