diff options
| author | Andrew M. B. Boktor <[email protected]> | 2012-05-17 11:11:11 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:47:31 -0700 |
| commit | 5ea6d0d35fe8005da93b796b1ebf43660a236357 (patch) | |
| tree | d83020f084cc0e1a86d4c3de7fc3e787ee65b84b /cuobjdump_to_ptxplus/cuobjdumpInstList.cc | |
| parent | d32ab26591e6cf466f3e35a5e7fdd43ba1f397a6 (diff) | |
Removing warnings
A bit of cleanup
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 12627]
Diffstat (limited to 'cuobjdump_to_ptxplus/cuobjdumpInstList.cc')
| -rw-r--r-- | cuobjdump_to_ptxplus/cuobjdumpInstList.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cuobjdump_to_ptxplus/cuobjdumpInstList.cc b/cuobjdump_to_ptxplus/cuobjdumpInstList.cc index e9b5365..b850298 100644 --- a/cuobjdump_to_ptxplus/cuobjdumpInstList.cc +++ b/cuobjdump_to_ptxplus/cuobjdumpInstList.cc @@ -57,14 +57,14 @@ void cuobjdumpInstList::addTex(std::string tex) // If $tex# tex from cuobjdump, then use index to get real tex name if(tex.substr(0, 4) == "$tex") { tex = tex.substr(4, tex.size()-4); - int texNum = atoi(tex.c_str()); + unsigned texNum = atoi(tex.c_str()); if(texNum >= m_realTexList.size()) { output("ERROR: tex does not exist in real tex list from ptx.\n."); assert(0); } std::list<std::string>::iterator itex = m_realTexList.begin(); - for(int i=0; i<texNum; i++) itex++; + for(unsigned i=0; i<texNum; i++) itex++; origTex = *itex; } // Otherwise, tex from original ptx @@ -261,9 +261,9 @@ void cuobjdumpInstList::printMemory() // Global or entry specific if(i->entryIndex == 0) - sprintf(line, ".const %s constant0[%d] = {", i->type, i->m_constMemory.size()); + sprintf(line, ".const %s constant0[%d] = {", i->type, (int)i->m_constMemory.size()); else - sprintf(line, ".const %s ce%dc%d[%d] = {", i->type, i->entryIndex, i->index, i->m_constMemory.size()); + sprintf(line, ".const %s ce%dc%d[%d] = {", i->type, i->entryIndex, i->index, (int)i->m_constMemory.size()); output(line); @@ -283,7 +283,7 @@ void cuobjdumpInstList::printMemory() char line[1024]; // Global or entry specific - sprintf(line, ".const %s constant1%s[%d] = {", i->type, i->kernel, i->m_constMemory.size()); + sprintf(line, ".const %s constant1%s[%d] = {", i->type, i->kernel, (int)i->m_constMemory.size()); output(line); @@ -368,7 +368,7 @@ void cuobjdumpInstList::addCuobjdumpRegister(std::string reg, bool lo) // add memory operand // memType: 0=constant, 1=shared, 2=global, 3=local -int currconstmem =1; +unsigned currconstmem =1; void cuobjdumpInstList::addCuobjdumpMemoryOperand(std::string mem, int memType) { std::string origMem = mem; bool neg = false; |
