Skip to content

Commit

Permalink
Remove unused _gpuParms and _gpuBlockDimX fields from Compilation class
Browse files Browse the repository at this point in the history
Signed-off-by: Daryl Maier <maier@ca.ibm.com>
  • Loading branch information
0xdaryl committed Mar 21, 2021
1 parent f111a8b commit a7a8d40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
4 changes: 0 additions & 4 deletions compiler/compile/OMRCompilation.cpp
Expand Up @@ -360,10 +360,6 @@ OMR::Compilation::Compilation(

if (optimizationPlan->isGPUCompileCPUCode())
_flags.set(IsGPUCompileCPUCode);


self()->setGPUBlockDimX(optimizationPlan->getGPUBlockDimX());
self()->setGPUParms(optimizationPlan->getGPUParms());
}

// if we are not in the selective NoOptServer mode
Expand Down
10 changes: 2 additions & 8 deletions compiler/compile/OMRCompilation.hpp
Expand Up @@ -290,7 +290,7 @@ class OMR_EXTENSIBLE Compilation
friend class ::TR_DebugExt;

protected:

inline TR::Compilation *self();

public:
Expand All @@ -314,7 +314,7 @@ class OMR_EXTENSIBLE Compilation

~Compilation() throw();



TR::Region &region() { return _heapMemoryRegion; }

Expand Down Expand Up @@ -1007,10 +1007,6 @@ class OMR_EXTENSIBLE Compilation
#endif

bool isGPUCompileCPUCode() { return _flags.testAny(IsGPUCompileCPUCode);}
void setGPUBlockDimX(int32_t dim) { _gpuBlockDimX = dim; }
int32_t getGPUBlockDimX() { return _gpuBlockDimX; }
void setGPUParms(void * parms) { _gpuParms = parms; }
void *getGPUParms() { return _gpuParms; }
ListHeadAndTail<char*>& getGPUPtxList() { return _gpuPtxList; }
ListHeadAndTail<int32_t>& getGPUKernelLineNumberList() { return _gpuKernelLineNumberList; } //TODO: fix to get real line numbers
void incGPUPtxCount() { _gpuPtxCount++; }
Expand Down Expand Up @@ -1316,8 +1312,6 @@ class OMR_EXTENSIBLE Compilation

TR::IlVerifier *_ilVerifier;

int32_t _gpuBlockDimX;
void * _gpuParms;
ListHeadAndTail<char*> _gpuPtxList;
ListHeadAndTail<int32_t> _gpuKernelLineNumberList; //TODO: fix to get real line numbers
int32_t _gpuPtxCount;
Expand Down

0 comments on commit a7a8d40

Please sign in to comment.