Skip to content

Commit

Permalink
Merge 52a2e58 into 13546f7
Browse files Browse the repository at this point in the history
  • Loading branch information
msimberg authored Mar 21, 2024
2 parents 13546f7 + 52a2e58 commit 965b6d4
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 25 deletions.
4 changes: 3 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ setup_arm64_machine: &setup_arm64_machine

docker_default: &docker_default
docker:
- image: pikaorg/pika-ci-base:22
- image: pikaorg/pika-ci-base:23

defaults: &defaults
<<: *working_dir_default
Expand Down Expand Up @@ -470,6 +470,8 @@ jobs:
name: Installing
command: |
./bin/hello_world --pika:bind=none
./bin/hello_world --pika:bind=none --pika:print-bind
hwloc-bind 0x3 ./bin/hello_world --pika:bind=none --pika:print-bind
ninja -j2 install
working_directory: /pika/build
when: always
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"image": "docker.io/pikaorg/pika-ci-base:22",
"image": "docker.io/pikaorg/pika-ci-base:23",
"features": {},
"onCreateCommand": "cmake -Bbuild -GNinja -DCMAKE_BUILD_TYPE=Debug -DPIKA_WITH_MALLOC=system -DPIKA_WITH_EXAMPLES=ON -DPIKA_WITH_TESTS=ON -DPIKA_WITH_TESTS_EXAMPLES=ON -DPIKA_WITH_TESTS_HEADERS=ON -DPIKA_WITH_TESTS_MAX_THREADS=2 -DPIKA_WITH_COMPILER_WARNINGS=ON -DPIKA_WITH_COMPILER_WARNINGS_AS_ERRORS=ON && cmake --build build --target pika",
"extensions": [
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux_asan_ubsan_lsan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
name: github/linux/sanitizers/address-undefined-leak
runs-on: ubuntu-latest
container:
image: pikaorg/pika-ci-base:22
image: pikaorg/pika-ci-base:23
# --privileged is enabled for sysctl further down.
options: --privileged

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
build:
name: github/linux/coverage
runs-on: ubuntu-latest
container: pikaorg/pika-ci-base:22
container: pikaorg/pika-ci-base:23

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux_debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
build:
name: github/linux/debug/fast
runs-on: ubuntu-latest
container: pikaorg/pika-ci-base:22
container: pikaorg/pika-ci-base:23

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux_release_fetchcontent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
name: github/linux/fetchcontent/fast
if: ${{ github.event_name == 'merge_group' }}
runs-on: ubuntu-latest
container: pikaorg/pika-ci-base:22
container: pikaorg/pika-ci-base:23

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux_tracy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
name: github/linux/tracy/fast
if: ${{ github.event_name == 'merge_group' }}
runs-on: ubuntu-latest
container: pikaorg/pika-ci-base:22
container: pikaorg/pika-ci-base:23

steps:
- name: Check out Tracy
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux_tsan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
name: github/linux/sanitizers/thread
runs-on: ubuntu-latest
container:
image: pikaorg/pika-ci-base:22
image: pikaorg/pika-ci-base:23
# --privileged is enabled for sysctl further down.
options: --privileged

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux_valgrind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
build:
name: github/linux/valgrind
runs-on: ubuntu-latest
container: pikaorg/pika-ci-base:22
container: pikaorg/pika-ci-base:23

strategy:
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .gitlab/includes/dockerhub_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ clang14_debug_build_pika-ci-image:
extends: .container-builder
needs: [] # To clear the dotenv artifacts
variables:
BASE_IMAGE: docker.io/pikaorg/pika-ci-base:22
BASE_IMAGE: docker.io/pikaorg/pika-ci-base:23
DOCKERFILE: .gitlab/docker/Dockerfile.dockerhub_build
DOCKER_BUILD_ARGS: '["BASE_IMAGE","BUILD_DIR","SOURCE_DIR"]'
PERSIST_IMAGE_NAME: $CSCS_REGISTRY_PATH/pika-debug-cpu-clang14:$CI_COMMIT_SHORT_SHA
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -394,26 +394,21 @@ namespace pika::threads::detail {
topology const& topo = get_topology();

// Set the affinity for the current thread.
threads::detail::mask_cref_type mask = affinity_data_.get_pu_mask(topo, global_thread_num);
threads::detail::mask_type mask = affinity_data_.get_pu_mask(topo, global_thread_num);

// If the mask is empty (signaling no binding) we set a full mask anyway, because the whole
// process may have a non-full mask set which is inherited by this thread.
if (!any(mask)) { mask = ~mask; }

if (LPIKA_ENABLED(debug)) topo.write_to_log();

error_code ec(throwmode::lightweight);
if (any(mask))
{
topo.set_thread_affinity_mask(mask, ec);
if (ec)
{
LTM_(warning).format(
"thread_func: {} setting thread affinity on OS thread {} failed with: {}",
id_.name(), global_thread_num, ec.get_message());
}
}
else
topo.set_thread_affinity_mask(mask, ec);
if (ec)
{
LTM_(debug).format(
"thread_func: {} setting thread affinity on OS thread {} was explicitly disabled.",
id_.name(), global_thread_num);
LTM_(warning).format(
"thread_func: {} setting thread affinity on OS thread {} failed with: {}",
id_.name(), global_thread_num, ec.get_message());
}

// Setting priority of worker threads to a lower priority, this
Expand Down

0 comments on commit 965b6d4

Please sign in to comment.