Skip to content

Add GPGPU-Sim support and migrate parboil driver to Python 3#76

Merged
JRPan merged 1 commit intoaccel-sim:devfrom
JRPan:dev-jr
Jan 21, 2026
Merged

Add GPGPU-Sim support and migrate parboil driver to Python 3#76
JRPan merged 1 commit intoaccel-sim:devfrom
JRPan:dev-jr

Conversation

@JRPan
Copy link
Contributor

@JRPan JRPan commented Jan 20, 2026

Summary

  • Add GPGPU-Sim detection in gpuConfig.h by checking for gpgpusim.config file and parsing L2 cache parameters from it
  • Update parboil driver from Python 2 to Python 3 (relative imports, print functions, exception syntax, itertools/dict updates)

Test plan

  • Test microbenchmarks with GPGPU-Sim to verify L2 config parsing works correctly
  • Test microbenchmarks on real hardware to verify existing behavior is preserved
  • Run parboil benchmarks with Python 3 to verify driver migration

🤖 Generated with Claude Code

- Add GPGPU-Sim detection in gpuConfig.h by checking for gpgpusim.config file
- Parse L2 cache configuration (nsets, linesize, assoc) from gpgpusim.config
- Calculate L2_SIZE, FBP_COUNT, and L2_BANKS from simulator config when running in GPGPU-Sim
- Update parboil driver from Python 2 to Python 3:
  - Convert print statements to print() functions
  - Use relative imports (from . import module)
  - Replace itertools.imap with map, itertools.ifilter with filter
  - Update exception syntax (raise Type, msg -> raise Type(msg))
  - Replace .iteritems() and .itervalues() with .items() and .values()
  - Replace file() with open()
  - Fix indentation (tabs to spaces)
  - Use 'is' -> '==' for string comparisons in process.py

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@JRPan JRPan merged commit ae0cce2 into accel-sim:dev Jan 21, 2026
1 check passed
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