Skip to content

Commit

Permalink
Merge pull request #920 from 3dem/qfix1
Browse files Browse the repository at this point in the history
This codes should be in common code block not CUDA specific
  • Loading branch information
biochem-fan authored Sep 29, 2022
2 parents 6ee3b89 + bcf065e commit 1569f02
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/ml_optimiser_mpi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,6 @@ void MlOptimiserMpi::initialise()

// Print information about MPI nodes:
printMpiNodesMachineNames(*node, nr_threads);
#ifdef _CUDA_ENABLED
/************************************************************************/
//Setup GPU related resources
int devCount, deviceAffinity;
bool is_split(false);

if (gradient_refine && !do_split_random_halves) {
if (node->isLeader())
Expand All @@ -111,6 +106,11 @@ void MlOptimiserMpi::initialise()
}

grad_pseudo_halfsets = gradient_refine && !do_split_random_halves;
#ifdef _CUDA_ENABLED
/************************************************************************/
//Setup GPU related resources
int devCount, deviceAffinity;
bool is_split(false);

if (do_gpu)
{
Expand Down

0 comments on commit 1569f02

Please sign in to comment.