-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[AutoScheduler] Misc update to hardware parameter and task scheduler #7020
Conversation
cc @jcf94 |
int max_shared_memory_per_block; | ||
/*! \brief The max number of register per block. */ | ||
int max_registers_per_block; | ||
/*! \brief The max number of threads per block. */ | ||
int max_threads_per_block; |
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.
How about exposing them under the tvm/_ffi/runtime_ctypes.py
like
@property
def max_thread_dimensions(self):
This will bring convenience when we want to get these values in our HardwareParams
like (mali target)
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.
This is already supported by VisitAttrs
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.
What I meant is we add code wrapper using attr
like this:
@property
def max_registers_per_block(self):
"""Return max registers per block"""
return self._GetDeviceAttr(self.device_type, self.device_id, 9)
Otherwise we access these property will not be convenient like other property max_shared_memory_per_block
supported before.
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.
This is irrelevant to this PR.
We can do it in other PRs.
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.
It is ok to me.
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.
Please take another look and approve. Thanks!
f3d7312
to
4ff36bd
Compare
4ff36bd
to
d561662
Compare
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.
LGTM
…pache#7020) * [AutoScheduler] Mics update to hardware parameter and task scheduler * update * update * update * update * fix * fix * update * improve warning message * update * lint * update * update * fix * Apply suggestions from code review * trigger CI
…pache#7020) * [AutoScheduler] Mics update to hardware parameter and task scheduler * update * update * update * update * fix * fix * update * improve warning message * update * lint * update * update * fix * Apply suggestions from code review * trigger CI
…pache#7020) * [AutoScheduler] Mics update to hardware parameter and task scheduler * update * update * update * update * fix * fix * update * improve warning message * update * lint * update * update * fix * Apply suggestions from code review * trigger CI
LogEstimatedLatency
to the default callback list in task scheduler.