Skip to content

Commit b1d402d

Browse files
committed
work stealing chunked task allocator example for issue ggml-org#291
1 parent 0be54f7 commit b1d402d

File tree

3 files changed

+441
-0
lines changed

3 files changed

+441
-0
lines changed

examples/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ else()
3939
add_subdirectory(baby-llama)
4040
add_subdirectory(train-text-from-scratch)
4141
add_subdirectory(simple)
42+
add_subdirectory(task-allocator)
4243
if (LLAMA_METAL)
4344
add_subdirectory(metal)
4445
endif()
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
set(TARGET task-allocator)
2+
add_executable(${TARGET} task-allocator.c)
3+
target_link_libraries(${TARGET} PRIVATE)
4+
target_compile_features(${TARGET} PRIVATE c_std_11)
5+
if(TARGET BUILD_INFO)
6+
add_dependencies(${TARGET} BUILD_INFO)
7+
endif()

0 commit comments

Comments
 (0)