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

Fabric mem rebased #292

Closed
wants to merge 28 commits into from
Closed

Fabric mem rebased #292

wants to merge 28 commits into from

Conversation

sbekele81
Copy link
Collaborator

No description provided.

TApplencourt and others added 24 commits September 4, 2024 13:22
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
@TApplencourt
Copy link
Collaborator

You need to remove the 3 first commit from the PR (ecd8b20 and so).

This reverts commit b919440.
@TApplencourt
Copy link
Collaborator

.github/workflows/presubmit.yml still show on the diff. Make it hard to review. You need to cherry-pick it to remove it.

@@ -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};
Copy link
Collaborator

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;
Copy link
Collaborator

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;
Copy link
Collaborator

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)

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.

3 participants