summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAhmad Alawneh <[email protected]>2023-06-12 22:09:59 -0400
committerAhmad Alawneh <[email protected]>2023-06-12 22:09:59 -0400
commit40beac66a57f9477dd03369b79a26f9823f089ff (patch)
treecf288293ca11952c357de37557b0b58580681e24
parentcb565024f23f1ab6b11d3717967b559aa49f3333 (diff)
no return warnings ngs fix
-rw-r--r--libcuda/cuda_runtime_api.cc1
-rw-r--r--src/gpgpu-sim/dram.cc1
-rw-r--r--src/gpgpu-sim/gpu-cache.h1
3 files changed, 3 insertions, 0 deletions
diff --git a/libcuda/cuda_runtime_api.cc b/libcuda/cuda_runtime_api.cc
index bc7ad38..5866b36 100644
--- a/libcuda/cuda_runtime_api.cc
+++ b/libcuda/cuda_runtime_api.cc
@@ -3605,6 +3605,7 @@ unsigned CUDARTAPI __cudaPushCallConfiguration(dim3 gridDim, dim3 blockDim,
announce_call(__my_func__);
}
cudaConfigureCallInternal(gridDim, blockDim, sharedMem, stream);
+ return 0;
}
cudaError_t CUDARTAPI __cudaPopCallConfiguration(dim3 *gridDim, dim3 *blockDim,
diff --git a/src/gpgpu-sim/dram.cc b/src/gpgpu-sim/dram.cc
index 662c2ed..53c8238 100644
--- a/src/gpgpu-sim/dram.cc
+++ b/src/gpgpu-sim/dram.cc
@@ -880,4 +880,5 @@ unsigned dram_t::get_bankgrp_number(unsigned i) {
} else {
assert(1);
}
+ return 0; // we should never get here
}
diff --git a/src/gpgpu-sim/gpu-cache.h b/src/gpgpu-sim/gpu-cache.h
index 4bbf7e2..9a4856b 100644
--- a/src/gpgpu-sim/gpu-cache.h
+++ b/src/gpgpu-sim/gpu-cache.h
@@ -499,6 +499,7 @@ struct sector_cache_block : public cache_block_t {
for (unsigned i = 0; i < SECTOR_CHUNCK_SIZE; ++i) {
if (sector_mask.to_ulong() & (1 << i)) return i;
}
+ return SECTOR_CHUNCK_SIZE; //error
}
};