This document provides instructions for opening and verifying the GPUShare project scaffold in OMNeT++ IDE.
gpu_share/
├── src/
│ ├── package.ned # Main package declaration
│ ├── gpu/
│ │ ├── package.ned # GPU subsystem package
│ │ ├── messages/
│ │ │ ├── package.ned # Message package
│ │ │ └── TestMessage.msg # Basic test message
│ │ └── modules/
│ │ ├── package.ned # Module package
│ │ ├── TestModule.ned # Test module definition
│ │ └── TestModule.cc # Test module implementation
│ ├── Module_1.cc # Existing simple module (kept)
│ └── Simple_Network.ned # Existing network (kept)
├── simulations/
│ ├── package.ned # Simulations package
│ ├── omnetpp.ini # General config (kept)
│ └── scaffold_test/ # Note: underscore, not hyphen!
│ ├── package.ned # Test simulation package
│ ├── TestScaffold.ned # Test network definition
│ └── omnetpp.ini # Test configuration
└── Makefile # Top-level makefile (kept)
- Launch OMNeT++ IDE
- File → Import → General → Existing Projects into Workspace
- Browse to:
d:\omnetpp-6.2.0\samples\gpu_share - Select "gpu_share" project and click Finish
- Right-click on "gpu_share" project in Project Explorer
- Select "Build Project" or press Ctrl+B
- The project should compile without errors
- Navigate to:
simulations/scaffold_test/omnetpp.ini(note: underscore, not hyphen) - Right-click and select "Run As" → "OMNeT++ Simulation"
- Select configuration:
ScaffoldTest - Choose "Qtenv" for graphical interface
- Click "Run"
If you see errors like "declared package does not match expected package":
- Refresh Project: Right-click project → Refresh (F5)
- Clean Build: Project → Clean → Select gpu_share → Clean
- Rebuild: Right-click project → Build Project
- Check Directory Names: Ensure
simulations/scaffold_test/uses underscore, not hyphen
If the IDE still shows old references:
- Close OMNeT++ IDE completely
- Delete workspace cache: Delete
.metadatafolder in your workspace - Restart IDE and re-import project
- Ensure NED path: Project Properties → OMNeT++ → NED Path includes both
srcandsimulations
✓ Project compiles without errors ✓ All .msg files generate corresponding _m.h and _m.cc files ✓ No missing imports or undefined references
✓ Network topology shows: testNode1 ↔ testNode2 ✓ Simulation runs for 10 seconds ✓ Event log shows message exchanges:
- testNode1 sends "ping" at t=1.0s
- testNode2 receives and responds with "pong" at t=1.5s
- Pattern continues until messagesSent limit reached
- Event log messages: "TestModule testNode1 sent message #1", etc.
- Message contents: "ping", "pong"
- Sequence numbers increment correctly
- Debug output shows module initialization
gpu_share: Root package for entire projectgpu_share.gpu: Core GPU sharing subsystemgpu_share.gpu.messages: Protocol message definitionsgpu_share.gpu.modules: Module implementationsgpu_share.simulations.scaffold_test: Test scenarios
This scaffold provides the foundation for the remaining phases of the GPUShare project.