Skip to content

Commit

Permalink
Merge branch 'dev' into add_accelsim_test
Browse files Browse the repository at this point in the history
  • Loading branch information
William-An authored Jan 15, 2025
2 parents 795dff3 + 3844f75 commit a3f57e1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/gpgpu-sim/gpu-sim.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ extern tr1_hash_map<new_addr_type, unsigned> address_random_interleaving;
* @return false
*/
extern bool is_SST_buffer_full(unsigned core_id);
__attribute__((weak)) bool is_SST_buffer_full(unsigned core_id) {
return false;
}

/**
* @brief Send loads to SST memory backend
Expand All @@ -89,7 +92,9 @@ extern bool is_SST_buffer_full(unsigned core_id);
*/
extern void send_read_request_SST(unsigned core_id, uint64_t address,
size_t size, void *mem_req);

__attribute__((weak)) void send_read_request_SST(unsigned core_id,
uint64_t address, size_t size,
void *mem_req) {}
/**
* @brief Send stores to SST memory backend
*
Expand All @@ -100,6 +105,9 @@ extern void send_read_request_SST(unsigned core_id, uint64_t address,
*/
extern void send_write_request_SST(unsigned core_id, uint64_t address,
size_t size, void *mem_req);
__attribute__((weak)) void send_write_request_SST(unsigned core_id,
uint64_t address, size_t size,
void *mem_req) {}

enum dram_ctrl_t { DRAM_FIFO = 0, DRAM_FRFCFS = 1 };

Expand Down
1 change: 1 addition & 0 deletions src/gpgpusim_entrypoint.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ class stream_manager *g_stream_manager() {

// SST callback
extern void SST_callback_cudaThreadSynchronize_done();
__attribute__((weak)) void SST_callback_cudaThreadSynchronize_done() {}

void *gpgpu_sim_thread_sequential(void *ctx_ptr) {
gpgpu_context *ctx = (gpgpu_context *)ctx_ptr;
Expand Down
4 changes: 4 additions & 0 deletions src/stream_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ extern void SST_callback_memcpy_H2D_done();
extern void SST_callback_memcpy_D2H_done();
extern void SST_callback_memcpy_to_symbol_done();
extern void SST_callback_memcpy_from_symbol_done();
__attribute__((weak)) void SST_callback_memcpy_H2D_done() {}
__attribute__((weak)) void SST_callback_memcpy_D2H_done() {}
__attribute__((weak)) void SST_callback_memcpy_to_symbol_done() {}
__attribute__((weak)) void SST_callback_memcpy_from_symbol_done() {}

CUstream_st::CUstream_st() {
m_pending = false;
Expand Down

0 comments on commit a3f57e1

Please sign in to comment.