Skip to content

Add headers for SoA generation#52

Merged
sbaldu merged 1 commit intocern-nextgen:mainfrom
leobeltra:feature/soa-generation-template
Dec 19, 2025
Merged

Add headers for SoA generation#52
sbaldu merged 1 commit intocern-nextgen:mainfrom
leobeltra:feature/soa-generation-template

Conversation

@leobeltra
Copy link
Copy Markdown
Contributor

This PR adds the SoA generator feature to xstl.
TODOs:

  • Add heterogeneous tests (cpu-only test runs)
  • Verify the required Boost version (1.82 has been used for local testing)
  • Add SoABlocks

@leobeltra leobeltra force-pushed the feature/soa-generation-template branch from 316b94f to a449a64 Compare December 19, 2025 14:14
@sbaldu sbaldu self-requested a review December 19, 2025 14:15
Comment on lines +4 to +13
include(CheckLanguage)
check_language(CUDA)
if(CMAKE_CUDA_COMPILER)
add_subdirectory(cuda)
endif()

check_language(HIP)
if(CMAKE_HIP_COMPILER)
add_subdirectory(hip)
endif()
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

So far you only add cpu tests, so this will fail to configure. Comment these lines for now please.

@@ -0,0 +1,15 @@
find_package(Boost 1.75 REQUIRED)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This should be in the base CMake file of soa_template.


target_include_directories(soa_template_cpu.out PRIVATE
${CMAKE_SOURCE_DIR}/../include
${doctest_SOURCE_DIR}/doctest
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

These libraries should be included with target_link_libraries(target PRIVATE Boost::boost doctest::doctest)

@sbaldu sbaldu changed the title Added SoA feature Add headers for SoA generation Dec 19, 2025
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Dec 19, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
include/xstl/soa_template/soa_common.hpp 100.00% <100.00%> (ø)
tests/soa_template/cpu/soa_template.cpp 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@leobeltra leobeltra force-pushed the feature/soa-generation-template branch from e7e6e87 to 6d4023a Compare December 19, 2025 15:01
@sbaldu sbaldu merged commit e50c35e into cern-nextgen:main Dec 19, 2025
4 of 7 checks passed
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