Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor the tuner to be used standalone #1884

Merged
merged 5 commits into from
Jun 13, 2024
Merged

Refactor the tuner to be used standalone #1884

merged 5 commits into from
Jun 13, 2024

Conversation

nathanielsimard
Copy link
Member

Change how the generic arguments are passed as well as creating a name for the tuner.

Copy link

codecov bot commented Jun 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.14%. Comparing base (4393b33) to head (170d0f2).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1884   +/-   ##
=======================================
  Coverage   86.14%   86.14%           
=======================================
  Files         778      778           
  Lines       90786    90827   +41     
=======================================
+ Hits        78205    78245   +40     
- Misses      12581    12582    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@louisfd louisfd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small typo, + you have a CI issue. Other than that it's great

@@ -20,14 +20,15 @@ pub type DummyClient = ComputeClient<DummyServer, DummyChannel>;

static RUNTIME: ComputeRuntime<DummyDevice, DummyServer, DummyChannel> = ComputeRuntime::new();
pub static TUNER_DEVICE_ID: &str = "tests/dummy-device";
pub static TUNER_PREFIX: &str = "dymmy-tests/dummy-device";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dymmy -> dummy


pub fn init_client() -> ComputeClient<DummyServer, MutexComputeChannel<DummyServer>> {
let storage = BytesStorage::default();
let memory_management =
SimpleMemoryManagement::new(storage, DeallocStrategy::Never, SliceStrategy::Never);
let server = DummyServer::new(memory_management);
let channel = MutexComputeChannel::new(server);
let tuner = Arc::new(RwLock::new(Tuner::new(TUNER_DEVICE_ID)));
let tuner = Arc::new(RwLock::new(Tuner::new("dymmy", TUNER_DEVICE_ID)));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

@louisfd louisfd merged commit 5e58ae1 into main Jun 13, 2024
15 checks passed
@louisfd louisfd deleted the refactor/autotune branch June 13, 2024 17:23
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.

None yet

2 participants