-
Notifications
You must be signed in to change notification settings - Fork 364
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
There was a problem hiding this 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"; |
There was a problem hiding this comment.
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))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
Change how the generic arguments are passed as well as creating a name for the tuner.