File tree Expand file tree Collapse file tree
include/opdi/backend/macro Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,8 +34,6 @@ std::stack<void*> opdi::DataTools::implicitTaskData;
3434
3535std::stack<bool > opdi::ImplicitBarrierTools::implicitBarrierStack;
3636
37- omp_lock_t opdi::ReductionTools::globalReductionLock;
38- std::list<omp_nest_lock_t *> opdi::ReductionTools::individualReductionLocks;
3937std::stack<bool > opdi::ReductionTools::hasReductions;
4038std::stack<bool > opdi::ReductionTools::needsBarrierBeforeReductions;
4139std::stack<bool > opdi::ReductionTools::needsBarrierAfterReductions;
Original file line number Diff line number Diff line change @@ -57,25 +57,13 @@ namespace opdi {
5757 // remaining functions from backend interface
5858
5959 void init () {
60- opdi_init_lock (&ReductionTools::globalReductionLock);
61-
6260 // task data for initial implicit task is created in the logic layer
6361 }
6462
6563 void finalize () {
6664 // pop task data associated with initial implicit task
6765 DataTools::popTaskData ();
6866 assert (DataTools::getImplicitTaskData () == nullptr );
69-
70- opdi_set_lock (&ReductionTools::globalReductionLock);
71-
72- for (auto lock : ReductionTools::individualReductionLocks) {
73- opdi_destroy_nest_lock (lock);
74- }
75-
76- opdi_unset_lock (&ReductionTools::globalReductionLock);
77-
78- opdi_destroy_lock (&ReductionTools::globalReductionLock);
7967 }
8068
8169 void * getParallelData () {
Original file line number Diff line number Diff line change @@ -41,9 +41,6 @@ namespace opdi {
4141
4242 struct ReductionTools {
4343 public:
44- static omp_lock_t globalReductionLock;
45- static std::list<omp_nest_lock_t *> individualReductionLocks;
46-
4744 /* item indicates a construct that might have a reduction clause */
4845 /* its value indicates whether there is a reduction clause */
4946 static std::stack<bool > hasReductions;
You can’t perform that action at this time.
0 commit comments