Skip to content

Add RTX 3060 Laptop hw_def; fix CLK_FREQUENCY macro collision#89

Open
AndrewVu23 wants to merge 1 commit into
accel-sim:devfrom
AndrewVu23:rtx3060-hwdef
Open

Add RTX 3060 Laptop hw_def; fix CLK_FREQUENCY macro collision#89
AndrewVu23 wants to merge 1 commit into
accel-sim:devfrom
AndrewVu23:rtx3060-hwdef

Conversation

@AndrewVu23

Copy link
Copy Markdown

Summary

Adds an hw_def header for the RTX 3060 Laptop GPU so the GPU_Microbenchmark suite can target it, and fixes a build-breaking macro collision that affects every existing hw_def header on modern toolchains.

Motivation / root cause

Each *_hw_def.h does #define CLK_FREQUENCY <MHz>. hw_def/common/gpuConfig.h defines a gpuConfig struct with a member also spelled CLK_FREQUENCY, so the macro rewrites the member name and the tuner fails to compile:

image

error: expected identifier before numeric constant (CLK_FREQUENCY -> 1410)

I found this bug by looking at the default config (Blackwell B200 -> the CLK_FREQUENCY is commented out)

Changes

ampere_RTX3060_MOBILE_hw_def.h: GA106 specs (30 SM, 1536 thr/SM, 128 KB L1, 3 MB L2, 192-bit, cap 8.6).
hw_def.h: activate the RTX3060 include.
All sibling *_hw_def.h: comment out #define CLK_FREQUENCY with a reviewer note

Evidence (before / after)

Before: #define CLK_FREQUENCY 1410 → compile error above

After: header set builds; config_int/config report the real card (30 SM, cap 8.6)

Test plan

  • make -C src/cuda/GPU_Microbenchmark builds the RTX3060 target
  • a config ubench prints correct SM/cap for the card

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant