Skip to content

Commit

Permalink
openmp fix 4
Browse files Browse the repository at this point in the history
  • Loading branch information
samayala22 committed Feb 2, 2024
1 parent b9ac426 commit 103a9ed
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion vlm/backends/avx2/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ target("backend-avx2")
set_kind("static")
set_default(false)
add_vectorexts("avx2", "fma")
add_packages("tbb", "openmp", "eigen")
add_packages("openmp", {public = true})
add_packages("tbb", "eigen")

add_includedirs("../../include")
add_files("src/*.cpp")
Expand Down
4 changes: 2 additions & 2 deletions vlm/xmake.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_requires("openmp")
-- add_requires("openmp")

target("libvlm")
set_kind("static")
Expand All @@ -16,7 +16,7 @@ target("vlm")
set_kind("binary")
set_default(true)
add_rpathdirs("$ORIGIN") -- tbb dll must be in same dir as exe
add_packages("openmp") -- needed for gcc linker (for eigen)
-- add_packages("openmp") -- needed for gcc linker (for eigen)
add_deps("libvlm") -- core library
set_runargs({"-i"}, {"../../../../config/elliptic.vlm"}, {"-m"}, {"../../../../mesh/elliptic_64x64.x"}, {"-o"}, {"../../../../results/elliptic.vtu"})
add_files("dev/main.cpp")
Expand Down
4 changes: 2 additions & 2 deletions xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ for _,name in ipairs(backends) do
end
end

add_requires("openmp")
-- add_requires("openmp")

includes("vlm/xmake.lua") -- library and main driver

Expand All @@ -55,7 +55,7 @@ for _, file in ipairs(os.files("tests/test_*.cpp")) do
target(name)
set_kind("binary")
set_default(false)
add_packages("openmp") -- needed for gcc linker (for eigen)
-- add_packages("openmp") -- needed for gcc linker (for eigen)
add_deps("libvlm")
add_files("tests/" .. name .. ".cpp")
add_tests("default")
Expand Down

0 comments on commit 103a9ed

Please sign in to comment.