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

Correct missing defined in include file #265

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

rob-baily
Copy link
Contributor

@rob-baily rob-baily commented Nov 5, 2024

Issue #, if available: NA, related to old PR #257

What was changed?
Correct to use "defined" for preprocessor check.

Why was it changed?
Receive a compiler warning with it as is.
warning: "__aarch64__" is not defined [-Wundef] #if defined __x86_64__ || defined __ppc64__ || __aarch64__

How was it changed?
Add the keyword "defined" to the line above.

What testing was done for the changes?
CI is passing.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@stefankiesz stefankiesz merged commit c97ddb6 into awslabs:develop Nov 5, 2024
23 of 24 checks passed
@sirknightj sirknightj mentioned this pull request Nov 7, 2024
sirknightj added a commit that referenced this pull request Nov 18, 2024
* CI enhancements, linter job rework

* PR description linter allowing * characters in the markdown format

* Apply linting

* Fix unit test when log level env variable is not set

* Use master branch, not main branch

* Prettify test configuration

* Correct missing defined in include file (#265)

* Custom Thread StackSize API (#264)

* Add API for specifying thread stack size (#243)

* Add API for specifying thread stack size

* Add compile time default stack size

* compile time definitions in cmake

* add local variable for stack size in API

* Adding temporary CMake Debug message

* Removed debug message in CMakeLists.txt, added CMAKE flag to readme

* Reset global variable before running new thread test

* Remove duplicate code and unused variables

* explicit cast

* missing )

* enforce pthread min stack size

* Change name of variable to have *_BYTES for readability

* Update variable name to include 'bytes' by request

* Addressing nit picks

* bound rand stack size value to not exceed max

* Remove rand() test on an OS wrapper API

* Wake up github

* Comment

* Remove lower bound checking for pthread

* Clang

* StackSize and ConstrainedDevice incompatible; Additional unit tests for the thread create API; Add new CI job and script to check CMake flag compatibility

* Add second case

* Fix typo

* Rename variables in the test

* Address comments and add log line in case of conflict again

---------

Co-authored-by: jdelapla <[email protected]>

* Change createThreadWithParams API from size_t to versioned struct (#268)

* Change createThreadWithParams from size_t to versioned struct and add new negative test scenarios

* Remove designated initializers

* Fix capitalization

* Add message to clarify that stack size is not set

* Adjust status name and strengthen equality checks in the test

* Adjust name in the windows path as well

* Move the statuscode to the other location, adjust tooLargeThreadStack test for windows and linux

* Fix missing parenthesis

* Move the sleep into the guarded section

* Rename variable in the test

---------

Co-authored-by: Rob Baily <[email protected]>
Co-authored-by: jdelapla <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants