Skip to content

Conversation

@ltan1ms
Copy link
Contributor

@ltan1ms ltan1ms commented Apr 8, 2025

  • Does this PR have a descriptive title that could go in our release notes?
  • Does this PR add any new dependencies?
  • Does this PR modify any existing APIs?
    • Is the change to the API backwards compatible?
  • Should this result in any changes to our documentation, either updating existing docs or adding new ones?

Reference Issues/PRs

What does this implement/fix? Briefly explain your changes.

Any other comments?

@ltan1ms ltan1ms requested a review from amrmorsey April 8, 2025 23:08
Comment on lines +1 to +2
#ifndef _THREAD_CONTEXT_H_
#define _THREAD_CONTEXT_H_

Choose a reason for hiding this comment

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

Will using #pragma once instead be better?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch, will add.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed now.

diskann::cout << "Starting final cleanup.." << std::flush;
}
#ifdef _ANN_ALLOCATOR
#pragma omp parallel for schedule(dynamic, 2048) firstprivate(context)

Choose a reason for hiding this comment

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

Should we also call OmpParallelContext context; here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it's defined by line 1573.

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