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

Add Lattice Boltzmann Fluid Simulation Example #3455

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 15 additions & 1 deletion examples/pde/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,37 @@ project(ArrayFire-Example-PDE

find_package(ArrayFire)

add_definitions("-DASSETS_DIR=\"${ASSETS_DIR}\"")

if(ArrayFire_CPU_FOUND)
# Shallow Water simulation example
add_executable(swe_cpu swe.cpp)
target_link_libraries(swe_cpu ArrayFire::afcpu)

add_executable(boltzmann_cfd_cpu boltzmann_cfd.cpp)
target_link_libraries(boltzmann_cfd_cpu ArrayFire::afcpu)
endif()

if(ArrayFire_CUDA_FOUND)
add_executable(swe_cuda swe.cpp)
target_link_libraries(swe_cuda ArrayFire::afcuda)

add_executable(boltzmann_cfd_cuda boltzmann_cfd.cpp)
target_link_libraries(boltzmann_cfd_cuda ArrayFire::afcuda)
endif()

if(ArrayFire_OpenCL_FOUND)
add_executable(swe_opencl swe.cpp)
target_link_libraries(swe_opencl ArrayFire::afopencl)

add_executable(boltzmann_cfd_opencl boltzmann_cfd.cpp)
target_link_libraries(boltzmann_cfd_opencl ArrayFire::afopencl)
endif()

if(ArrayFire_oneAPI_FOUND)
add_executable(swe_oneapi swe.cpp)
target_link_libraries(swe_oneapi ArrayFire::afoneapi)
endif()

add_executable(boltzmann_cfd_oneapi boltzmann_cfd.cpp)
target_link_libraries(boltzmann_cfd_oneapi ArrayFire::afoneapi)
endif()