forked from ray-project/ray
-
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.
Update third-party patches (ray-project#203)
- Loading branch information
1 parent
db1f10f
commit eff6924
Showing
9 changed files
with
195 additions
and
402 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
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 @@ | ||
*.patch text eol=lf |
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,17 @@ | ||
diff --git a/src/cpp/server/create_default_thread_pool.cc b/src/cpp/server/create_default_thread_pool.cc | ||
index f3b07ec..ede18cb | ||
--- a/src/cpp/server/create_default_thread_pool.cc | ||
+++ b/src/cpp/server/create_default_thread_pool.cc | ||
@@ -40,8 +40,12 @@ | ||
namespace grpc { | ||
|
||
ThreadPoolInterface* CreateDefaultThreadPool() { | ||
+#ifdef NDEBUG | ||
int cores = gpr_cpu_num_cores(); | ||
if (!cores) cores = 4; | ||
+#else | ||
+ int cores = 0; | ||
+#endif | ||
return new DynamicThreadPool(cores); | ||
} | ||
|
File renamed without changes.
567 changes: 171 additions & 396 deletions
567
...party/windows-patches/grpc-projects.patch → ...party/patches/windows/grpc-projects.patch
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.