-
Notifications
You must be signed in to change notification settings - Fork 11
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
Fabric mem rebased #292
Fabric mem rebased #292
Conversation
Use dependency from Efficios deliverable. --------- Co-authored-by: Thomas Applencourt <[email protected]>
Enable usage of session rotation for lossless online trace consumption. --------- Co-authored-by: Thomas Applencourt <[email protected]>
* Make only local master do energy profiling. * Use ZES to query devices in order to get around affinity masks. * Use ZES for drivers as well. * set ZES * Update ze/tracer_ze_helpers.include.c Co-authored-by: Brice Videau <[email protected]> * Update ze/tracer_ze_helpers.include.c Co-authored-by: Brice Videau <[email protected]> * Update xprof/xprof.rb.in --------- Co-authored-by: Brice Videau <[email protected]> Co-authored-by: Thomas Applencourt <[email protected]>
Sampling Rewrite
You need to remove the 3 first commit from the PR (ecd8b20 and so). |
This reverts commit b919440.
|
@@ -838,6 +835,17 @@ static void intializeFrequency() { | |||
_sampling_freqDomainCounts[driverIdx][deviceIdx] = 0; | |||
free(_sampling_hFrequencies[driverIdx][deviceIdx]); | |||
} | |||
for (uint32_t domainIdx = 0; domainIdx < _sampling_freqDomainCounts[driverIdx][deviceIdx]; domainIdx++) { | |||
zes_freq_properties_t freqProps ={0}; |
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.
You can run clang format. to fix missing space
for (uint32_t driverIdx = 0; driverIdx < _sampling_driverCount; driverIdx++) { | ||
_sampling_freqDomainCounts[driverIdx] = (uint32_t*) calloc(_sampling_deviceCount[driverIdx], sizeof(uint32_t)); | ||
_sampling_hFrequencies[driverIdx] = (zes_freq_handle_t**) calloc(_sampling_deviceCount[driverIdx], sizeof(zes_freq_handle_t*)); | ||
for (uint32_t deviceIdx = 0; deviceIdx < _sampling_deviceCount[driverIdx]; deviceIdx++) { | ||
// Get frequency domains for each device | ||
_sampling_freqDomainCounts[driverIdx][deviceIdx] = 0; |
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.
Not required as it have be calloc
so should already be 0
initialized
res = ZES_DEVICE_ENUM_FABRIC_PORTS_PTR(_sampling_hDevices[driverIdx][deviceIdx], &_sampling_fabricPortCount[driverIdx][deviceIdx], NULL); | ||
if (res != ZE_RESULT_SUCCESS) { | ||
_ZE_ERROR_MSG("1st ZES_DEVICE_ENUM_FABRIC_PORTS_PTR", res); | ||
_sampling_fabricPortCount[driverIdx][deviceIdx] = 0; |
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 already calloc (and 941 also)
No description provided.