Skip to content

remove compilation flag use_kokkos and vector version#265

Merged
ABandet merged 4 commits intomainfrom
task/remove-vector-version
Mar 25, 2026
Merged

remove compilation flag use_kokkos and vector version#265
ABandet merged 4 commits intomainfrom
task/remove-vector-version

Conversation

@ABandet
Copy link
Collaborator

@ABandet ABandet commented Mar 25, 2026

Kokkos version is now the only version used.

This PR aims to remove the vector version and the USE_KOKKOS cmake flag.
USE_VECTOR is no longer used.

@ABandet ABandet self-assigned this Mar 25, 2026
@ABandet ABandet added SEM Spectral element method compilation Impacts project compilation (cmake, etc.) labels Mar 25, 2026
@ABandet ABandet linked an issue Mar 25, 2026 that may be closed by this pull request
@ABandet ABandet requested a review from Bubusch March 25, 2026 11:29
Copy link
Contributor

@Bubusch Bubusch left a comment

Choose a reason for hiding this comment

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

readme.md and GitHub workflows also need to be updated to remove vector builds.

else()
message(STATUS "Building the application with Kokkos.")
set(USE_VECTOR OFF CACHE BOOL "" FORCE)
message(STATUS "Building the application with Kokkos.")
Copy link
Contributor

Choose a reason for hiding this comment

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

message not really needed since we always build with kokkos now

Copy link
Contributor

Choose a reason for hiding this comment

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

maybe even this file is not required anymore

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

You are right. I'll remove the file and add find_package function into KokkosUtils.cmake.

message(STATUS "Programming Models:")
message(STATUS " USE_VECTOR: ${USE_VECTOR}")
message(STATUS " USE_KOKKOS: ${USE_KOKKOS}")
message(STATUS " ENABLE_CUDA: ${ENABLE_CUDA}")
Copy link
Contributor

Choose a reason for hiding this comment

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

why remove ENABLE_CUDA and ENABLE_HIP?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These flags are handled by Kokkos now.

Our code should be independent of the GPU/HOST implementation. This part is handled by kokkos and TPL (or users installation).

option(USE_VECTOR "Use vectors." OFF)
option(USE_KOKKOS "Use KOKKOS to parallelise loops" OFF)
option(USE_KOKKOS_TEAMS "use hierarchical parallelism in Kokkos" OFF)
option(ENABLE_CUDA "Enable cuda compilation" OFF)
Copy link
Contributor

Choose a reason for hiding this comment

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

why remove ENABLE_CUDA and ENABLE_HIP?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These flags are handled by Kokkos now.

Our code should be independent of the GPU/HOST implementation. This part is handled by kokkos and TPL (or users installation).

@ABandet ABandet requested a review from Bubusch March 25, 2026 14:55
Copy link
Contributor

@Bubusch Bubusch left a comment

Choose a reason for hiding this comment

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

assuming #266 will update readme file and GitHub builds for vector will be removed there

@ABandet ABandet merged commit f957e91 into main Mar 25, 2026
5 checks passed
@ABandet ABandet deleted the task/remove-vector-version branch March 25, 2026 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

compilation Impacts project compilation (cmake, etc.) SEM Spectral element method

Projects

None yet

Development

Successfully merging this pull request may close these issues.

remove vector version

2 participants