Skip to content

Commit

Permalink
[NEW] Introduce EXPERIMENTAL options
Browse files Browse the repository at this point in the history
  • Loading branch information
miEsMar committed Dec 26, 2024
1 parent faead14 commit b6f0ea2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
18 changes: 10 additions & 8 deletions BsaLib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,18 @@ set_target_properties( ${project} PROPERTIES
)



# # TODO: experimental
# target_compile_definitions( ${project} PRIVATE BSA_USE_POD_DATA_CACHING )
if ( enable-pod-caching )
target_compile_definitions( ${project} PRIVATE BSA_USE_POD_DATA_CACHING )
endif()


# # BUG: using OMP in post-meshing phase will result in slower runtime
# # due to critical sections synchronisation where accessing shared
# # file I/O. For better performances, consider rethinking about the
# # logic related, otherwise better use 1 thread only.
# target_compile_definitions( ${project} PRIVATE BSA_USE_POST_MESH_OMP )
# BUG: using OMP in post-meshing phase will result in slower runtime
# due to critical sections synchronisation where accessing shared
# file I/O. For better performances, consider rethinking about the
# logic related, otherwise better use 1 thread only.
if ( enable-post-mesh-omp )
target_compile_definitions( ${project} PRIVATE BSA_USE_POST_MESH_OMP )
endif()



Expand Down
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ option(enable-openmp "Enable OpenMP parallelisation"
option(enable-mkl "Enable Intel MKL libraries (Intel compilers only)" ON)
option(enable-sym-ev-routine "Enable usage of 'dsyev' instead of 'dgesvd'" ON)

# experimental
option(enable-pod-caching "Enable POD caching. EXPERIMENTAL!" OFF)
option(enable-post-mesh-omp "Enable using OpenMP in post meshing. EXPERIMENTAL!" OFF)

# GPU options
option(enable-gpu-code "Enable GPU kernel code with OpenCL (defaulr) or CUDA backends" OFF)
option(enable-const-ptr-def "In GPU related code, declare internal pointers `const`" ON)
Expand Down

0 comments on commit b6f0ea2

Please sign in to comment.