File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
components/homme/src/share/compose Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -275,21 +275,6 @@ static void initialize_kokkos () {
275
275
if (Kokkos::is_initialized ()) return ;
276
276
in_charge_of_kokkos = true ;
277
277
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
293
278
const char * silence = " --kokkos-disable-warnings" ;
294
279
args.push_back (const_cast <char *>(silence));
295
280
int narg = args.size ();
You can’t perform that action at this time.
0 commit comments