Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerw committed Sep 25, 2024
1 parent ba603d6 commit 8bbeccb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions DataManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ void DataManager::init() {
root = NULL;
oldNumChunks = 0;
chunkRoots = NULL;
cleanupTreePieces = true;
#ifdef CUDA
treePiecesDone = 0;
treePiecesDonePrefetch = 0;
Expand Down Expand Up @@ -162,7 +161,6 @@ void DataManager::notifyPresence(Tree::GenericTreeNode *root, TreePiece *tp) {
/// \brief Clear registeredTreePieces on this node.
void DataManager::clearRegisteredPieces(const CkCallback& cb) {
registeredTreePieces.removeAll();
cleanupTreePieces = true;
contribute(cb);
}

Expand Down Expand Up @@ -1003,7 +1001,6 @@ void DataManager::transferParticleVarsBack(){
cudaFree(d_localVars);
cudaFree(d_remoteMoments);
cudaFree(d_remoteParts);
cleanupTreePieces = true;

#ifdef CUDA_PRINT_ERRORS
printf("transferParticleVarsBack: %s\n", cudaGetErrorString( cudaGetLastError() ) );
Expand Down
3 changes: 0 additions & 3 deletions DataManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@ class DataManager : public CBase_DataManager {
/// A list of roots of the TreePieces in this node
// holds chare array indices of registered treepieces
CkVec<TreePieceDescriptor> registeredTreePieces;
/// Signal whether registeredTreePieces needs to be cleaned
/// when combining local trees
bool cleanupTreePieces;
#ifdef CUDA
//CkVec<int> registeredTreePieceIndices;
/// @brief counter for the number of tree nodes that are
Expand Down

0 comments on commit 8bbeccb

Please sign in to comment.