Skip to content

Commit 9e58122

Browse files
committed
Merge branch 'sjsprecious:fix_hip_build_error' into next (PR #7668)
This pull request removes the code snippet that broke a HIP build on AMD MI300A GPUs. [BFB]
2 parents 4d186d7 + 15f980d commit 9e58122

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

components/homme/src/share/compose/compose_slmm.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -275,21 +275,6 @@ static void initialize_kokkos () {
275275
if (Kokkos::is_initialized()) return;
276276
in_charge_of_kokkos = true;
277277
std::vector<char*> args;
278-
#ifdef HOMMEXX_ENABLE_GPU
279-
int nd;
280-
const auto ret = cudaGetDeviceCount(&nd);
281-
if (ret != cudaSuccess) {
282-
// It isn't a big deal if we can't get the device count.
283-
nd = 1;
284-
}
285-
std::stringstream ss;
286-
ss << "--kokkos-ndevices=" << nd;
287-
const auto key = ss.str();
288-
std::vector<char> str(key.size()+1);
289-
std::copy(key.begin(), key.end(), str.begin());
290-
str.back() = 0;
291-
args.push_back(const_cast<char*>(str.data()));
292-
#endif
293278
const char* silence = "--kokkos-disable-warnings";
294279
args.push_back(const_cast<char*>(silence));
295280
int narg = args.size();

0 commit comments

Comments
 (0)