Skip to content

Commit

Permalink
Tpetra: remove deprecated skipgpu option from cgsolve
Browse files Browse the repository at this point in the history
Kokkos has deprecated the function that the --skipgpu=N option used.
  • Loading branch information
brian-kelley committed Apr 9, 2024
1 parent c4bed20 commit 649d9ae
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,6 @@ int main(int argc, char *argv[]) {
const char* rawKokkosNumDevices = std::getenv("KOKKOS_NUM_DEVICES");
if(rawKokkosNumDevices)
numgpus = std::atoi(rawKokkosNumDevices);
int skipgpu = 999;

bool useSYCL = false;
bool useHIP = false;
Expand All @@ -316,7 +315,6 @@ int main(int argc, char *argv[]) {
cmdp.setOption("verbose","quiet",&verbose,"Print messages and results.");
cmdp.setOption("numthreads",&numthreads,"Number of threads per thread team.");
cmdp.setOption("numgpus",&numgpus,"Number of GPUs.");
cmdp.setOption("skipgpu",&skipgpu,"Do not use this GPU.");
cmdp.setOption("hostname",&hostname,"Override of hostname for PerfTest entry.");
cmdp.setOption("testarchive",&testarchive,"Set filename for Performance Test archive.");
cmdp.setOption("filename",&filename,"Filename for test matrix.");
Expand Down Expand Up @@ -405,7 +403,6 @@ int main(int argc, char *argv[]) {
Kokkos::InitializationSettings kokkosArgs;
kokkosArgs.set_num_threads(numthreads);
kokkosArgs.set_device_id(myRank % numgpus);
kokkosArgs.set_skip_device(skipgpu);
kokkosArgs.set_disable_warnings(!verbose);

Kokkos::initialize (kokkosArgs);
Expand Down

0 comments on commit 649d9ae

Please sign in to comment.