Skip to content

Commit

Permalink
Added Black Hole Raytracing Example
Browse files Browse the repository at this point in the history
  • Loading branch information
edwinsolisf committed Jan 10, 2024
1 parent 4061db8 commit babc46e
Show file tree
Hide file tree
Showing 2 changed files with 892 additions and 0 deletions.
15 changes: 15 additions & 0 deletions examples/pde/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,38 @@ 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)

# Black Hole Raytracing example
add_executable(bhrt_cpu bhrt.cpp)
target_link_libraries(bhrt_cpu ArrayFire::afcpu)
endif()

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

add_executable(bhrt_cuda bhrt.cpp)
target_link_libraries(bhrt_cuda ArrayFire::afcuda)
endif()

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

add_executable(bhrt_opencl bhrt.cpp)
target_link_libraries(bhrt_opencl ArrayFire::afopencl)
endif()

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

add_executable(bhrt_oneapi bhrt.cpp)
target_link_libraries(bhrt_oneapi ArrayFire::afoneapi)
endif()

0 comments on commit babc46e

Please sign in to comment.