Skip to content

Commit

Permalink
remove unused gpuAllocationLock
Browse files Browse the repository at this point in the history
  • Loading branch information
mode89 committed Jul 30, 2017
1 parent 52e4095 commit b5411d3
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions carlsim/interface/src/carlsim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1416,12 +1416,6 @@ class CARLsim::Impl {

static bool gpuAllocation[MAX_NUM_CUDA_DEVICES];
static std::string gpuOccupiedBy[MAX_NUM_CUDA_DEVICES];
#if defined(WIN32) || defined(WIN64)
static HANDLE gpuAllocationLock;
#else
static pthread_mutex_t gpuAllocationLock;
#endif


// +++++ PRIVATE PROPERTIES +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //

Expand Down Expand Up @@ -1494,12 +1488,6 @@ class CARLsim::Impl {
bool CARLsim::Impl::gpuAllocation[MAX_NUM_CUDA_DEVICES] = {false};
std::string CARLsim::Impl::gpuOccupiedBy[MAX_NUM_CUDA_DEVICES];

#if defined(WIN32) || defined(WIN64)
HANDLE CARLsim::Impl::gpuAllocationLock = CreateMutex(NULL, FALSE, NULL);
#else
pthread_mutex_t CARLsim::Impl::gpuAllocationLock = PTHREAD_MUTEX_INITIALIZER;
#endif

// constructor / destructor
CARLsim::CARLsim(const std::string& netName, SimMode preferredSimMode, LoggerMode loggerMode, int ithGPUs, int randSeed) :
_impl( new Impl(this, netName, preferredSimMode, loggerMode, randSeed) ) {}
Expand Down

0 comments on commit b5411d3

Please sign in to comment.