Skip to content

Commit

Permalink
work stealing chunked task allocator example for issue #291
Browse files Browse the repository at this point in the history
  • Loading branch information
mqy committed Jun 27, 2023
1 parent 0be54f7 commit b1d402d
Show file tree
Hide file tree
Showing 3 changed files with 441 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ else()
add_subdirectory(baby-llama)
add_subdirectory(train-text-from-scratch)
add_subdirectory(simple)
add_subdirectory(task-allocator)
if (LLAMA_METAL)
add_subdirectory(metal)
endif()
Expand Down
7 changes: 7 additions & 0 deletions examples/task-allocator/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
set(TARGET task-allocator)
add_executable(${TARGET} task-allocator.c)
target_link_libraries(${TARGET} PRIVATE)
target_compile_features(${TARGET} PRIVATE c_std_11)
if(TARGET BUILD_INFO)
add_dependencies(${TARGET} BUILD_INFO)
endif()
Loading

0 comments on commit b1d402d

Please sign in to comment.