diff options
| author | sspenst <[email protected]> | 2016-05-12 16:54:39 -0700 |
|---|---|---|
| committer | sspenst <[email protected]> | 2016-05-12 16:54:39 -0700 |
| commit | 4bdf48ed2098e036da1503405c30b71f39be0e94 (patch) | |
| tree | 1e895cdfe51f82697bad66f161145a40d77b3329 /libcuda | |
| parent | 41e327c4521fbb3a341b211666a2c90529091532 (diff) | |
added an assertion to pruneSectionList
Diffstat (limited to 'libcuda')
| -rw-r--r-- | libcuda/cuda_runtime_api.cc | 2 | ||||
| -rw-r--r-- | libcuda/cuobjdump.y | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/libcuda/cuda_runtime_api.cc b/libcuda/cuda_runtime_api.cc index 496d83c..7495767 100644 --- a/libcuda/cuda_runtime_api.cc +++ b/libcuda/cuda_runtime_api.cc @@ -1484,6 +1484,8 @@ std::list<cuobjdumpSection*> pruneSectionList(std::list<cuobjdumpSection*> cuobj delete *iter; } } + + assert(!prunedList.empty() && "WARNING: Change -gpgpu_ptx_force_max_capability in gpgpusim.config to match the largest Gencode argument in the Makefile"); return prunedList; } diff --git a/libcuda/cuobjdump.y b/libcuda/cuobjdump.y index f86d445..5fc0c8f 100644 --- a/libcuda/cuobjdump.y +++ b/libcuda/cuobjdump.y @@ -39,7 +39,7 @@ void setCuobjdumpelffilename(const char* filename); void setCuobjdumpsassfilename(const char* filename); int elfserial = 1; int ptxserial = 1; -int yydebug=1; + FILE *ptxfile; FILE *elffile; FILE *sassfile; |
