gpgpu-sim / gpgpu-sim_distribution

GPGPU-Sim provides a detailed simulation model of contemporary NVIDIA GPUs running CUDA and/or OpenCL workloads. It includes support for features such as TensorCores and CUDA Dynamic Parallelism as well as a performance visualization tool, AerialVisoin, and an integrated energy model, GPUWattch.
Other
1.13k stars 511 forks source link

Problems with get_access_byte_mask in mem_fetch #260

Closed LiyanChen-SJTU closed 2 years ago

LiyanChen-SJTU commented 2 years ago

Hi,all

I want to check memory fetch address using mf->get_addr() and mf->get_access_byte_mask(). I don't change GPGPU-sim's codes except MEMPART_DPRINTF. However, it turns out some mem_fetch's byte masks are 0, but some are not:

GPGPU-Sim Cycle 6256: MEMORY_PARTITION_UNIT - 0 - Issue mem_fetch request 0x7fc1acbf76d0 from sub partition 0 to dram with addr c0000040 and read or write 1, byte mask:0 GPGPU-Sim Cycle 6256: MEMORY_PARTITION_UNIT - 4 - sub partition 0 sub_partition_contention=F has_dram_resource=T GPGPU-Sim Cycle 6256: MEMORY_PARTITION_UNIT - 4 - Issue mem_fetch request 0x7fc1acbf80a0 from sub partition 0 to dram with addr c000e800 and read or write 1, byte mask:f000000 GPGPU-Sim Cycle 6256: MEMORY_PARTITION_UNIT - 6 - sub partition 1 sub_partition_contention=F has_dram_resource=T GPGPU-Sim Cycle 6256: MEMORY_PARTITION_UNIT - 6 - Issue mem_fetch request 0x7fc1ad160320 from sub partition 1 to dram with addr c0005a80 and read or write 1, byte mask:f0

Thanks in advance!