Skip to content

Commit

Permalink
read subatches in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
Roger Waleffe authored and Roger Waleffe committed Nov 21, 2023
1 parent 1a071e6 commit cd55db7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cpp/src/pipeline/pipeline_gpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ void BatchToDeviceWorker::run() {
}

if (batch->sub_batches_.size() > 0) {
#pragma omp parallel for
for (int i = 0; i < batch->sub_batches_.size(); i++) {
if (!batch->sub_batches_[i]->node_features_.defined())
batch->sub_batches_[i]->node_features_ = pipeline_->dataloader_->graph_storage_->getNodeFeatures(batch->sub_batches_[i]->unique_node_indices_);
Expand Down

0 comments on commit cd55db7

Please sign in to comment.