Skip to content

Commit

Permalink
Add BUILD files
Browse files Browse the repository at this point in the history
  • Loading branch information
Laxman Dhulipala committed Nov 14, 2024
1 parent 36459f4 commit 56a01a5
Show file tree
Hide file tree
Showing 12 changed files with 701 additions and 1 deletion.
3 changes: 3 additions & 0 deletions include/WORKSPACE
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
load("@bazel_tools//tools/cpp:cc_configure.bzl", "cc_configure")

cc_configure()
214 changes: 214 additions & 0 deletions include/parlay/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,214 @@
licenses(["notice"])

package(
default_visibility = ["//visibility:public"],
)

cc_library(
name = "alloc",
hdrs = ["alloc.h"],
deps = [
":type_traits",
":utilities",
"//parlay/internal:block_allocator",
"//parlay/internal:memory_size",
"//parlay/internal:pool_allocator",
],
)

cc_library(
name = "delayed",
hdrs = ["delayed.h"],
deps = [
":delayed_sequence",
":range",
":type_traits",
"//parlay/internal/delayed:filter",
"//parlay/internal/delayed:filter_op",
"//parlay/internal/delayed:flatten",
"//parlay/internal/delayed:map",
"//parlay/internal/delayed:scan",
"//parlay/internal/delayed:terminal",
"//parlay/internal/delayed:zip",
"//parlay/internal:sequence_ops",
],
)

cc_library(
name = "delayed_sequence",
hdrs = ["delayed_sequence.h"],
deps = [
":utilities",
],
)

cc_library(
name = "hash_table",
hdrs = ["hash_table.h"],
deps = [
":delayed_sequence",
":monoid",
":parallel",
":primitives",
":sequence",
":slice",
":utilities",
"//parlay/internal:sequence_ops",
],
)

cc_library(
name = "io",
hdrs = ["io.h"],
deps = [
":primitives",
":sequence",
":slice",
"//parlay/internal:file_map",
],
)

cc_library(
name = "monoid",
hdrs = ["monoid.h"],
deps = [
":portability",
":type_traits",
]
)

cc_library(
name = "parallel",
hdrs = ["parallel.h"],
deps = [
":scheduler",
"//parlay/internal/scheduler_plugins:sequential",
],
)

cc_library(
name = "portability",
hdrs = ["portability.h"],
)

cc_library(
name = "primitives",
hdrs = ["primitives.h"],
deps = [
":delayed",
":delayed_sequence",
":monoid",
":parallel",
":random",
":range",
":sequence",
":slice",
":type_traits",
":utilities",
"//parlay/internal:block_delayed",
"//parlay/internal:collect_reduce",
"//parlay/internal:counting_sort",
"//parlay/internal:group_by",
"//parlay/internal:integer_sort",
"//parlay/internal:heap_tree",
"//parlay/internal:merge",
"//parlay/internal:merge_sort",
"//parlay/internal:sample_sort",
"//parlay/internal:sequence_ops",
],
)

cc_library(
name = "random",
hdrs = ["random.h"],
deps = [
":delayed_sequence",
":parallel",
":range",
":sequence",
":slice",
":utilities",
"//parlay/internal:counting_sort",
],
)

cc_library(
name = "range",
hdrs = ["range.h"],
deps = [
":type_traits",
]
)

cc_library(
name = "relocation",
hdrs = ["relocation.h"],
deps = [
":parallel",
":range",
":type_traits",
":utilities",
"//parlay/internal:debug_uninitialized",
]
)

cc_library(
name = "scheduler",
hdrs = ["scheduler.h"],
deps = [
"//parlay/internal:atomic_wait",
"//parlay/internal:work_stealing_deque",
"//parlay/internal:work_stealing_job",
],
)

cc_library(
name = "sequence",
hdrs = ["sequence.h"],
deps = [
":alloc",
":parallel",
":range",
":slice",
":type_traits",
":utilities",
"//parlay/internal:debug_uninitialized",
"//parlay/internal:sequence_base",
],
)

cc_library(
name = "slice",
hdrs = ["slice.h"],
deps = [
":range",
],
)

cc_library(
name = "thread_specific",
hdrs = ["thread_specific.h"],
deps = [
":portability",
":range",
":type_traits",
"//parlay/internal:thread_id_pool",
],
)

cc_library(
name = "type_traits",
hdrs = ["type_traits.h"],
)

cc_library(
name = "utilities",
hdrs = ["utilities.h"],
deps = [
":parallel",
":portability",
":range",
":type_traits",
"//parlay/internal:debug_uninitialized",
],
)
Loading

0 comments on commit 56a01a5

Please sign in to comment.