-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a7871c7
commit 5914b0b
Showing
3 changed files
with
36 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package("taskflow_custom", function() | ||
set_urls("https://github.com/samayala22/taskflow.git") | ||
add_urls("https://github.com/samayala22/taskflow/archive/$(version).tar.gz") | ||
add_versions("v3.6.2", "0a1d306f90e8e17cb98b95eaae9e8b9455beeeca0f0a72afee7719b27706c68c") | ||
|
||
if is_plat("linux") then | ||
add_syslinks("pthread") | ||
end | ||
|
||
on_install("linux", "macosx", "windows", "iphoneos", "android", "cross", "mingw", "bsd", function (package) | ||
os.cp("taskflow", package:installdir("include")) | ||
end) | ||
|
||
on_test(function (package) | ||
assert(package:check_cxxsnippets({test = [[ | ||
#include <taskflow/taskflow.hpp> | ||
#include <taskflow/algorithm/for_each.hpp> | ||
static void test() { | ||
tf::Executor executor; | ||
tf::Taskflow taskflow; | ||
std::vector<int> range(10); | ||
std::iota(range.begin(), range.end(), 0); | ||
taskflow.for_each(range.begin(), range.end(), [&] (int i) { | ||
std::printf("for_each on container item: %d\n", i); | ||
}); | ||
executor.run(taskflow).wait(); | ||
} | ||
]]}, {configs = {languages = "c++17"}})) | ||
end) | ||
end) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
includes("../../../packages/taskflow.lua") | ||
|
||
add_requires("tbb") | ||
|
||
add_requires("openblas") | ||
add_requires("taskflow") | ||
add_requires("taskflow_custom") | ||
|
||
target("backend-avx2") | ||
set_kind("static") | ||
set_default(false) | ||
add_vectorexts("avx2", "fma") | ||
add_packages("tbb") | ||
add_packages("taskflow") | ||
add_packages("taskflow_custom") | ||
add_defines("HAVE_LAPACK_CONFIG_H") | ||
add_packages("openblas", { public = true }) | ||
|
||
add_includedirs("../../include") | ||
add_files("src/*.cpp") | ||
add_includedirs("include", {public = true}) | ||
|