-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parachain instance cache warmup (#1851)
* Added precompilation of parachain modules -- at node startup, parachain validation codes are pulled from the state of the last finalized block and compiled into wasm modules, which are stored in the RuntimeInstancesPool, a cache used by pvf executor. * Add test for multithreaded module compilation * Disable parachain precompilation for non-validating nodes * Make pools_mtx non-shared * build fix Signed-off-by: iceseer <[email protected]> * Fix errors from master --------- Signed-off-by: iceseer <[email protected]> Co-authored-by: iceseer <[email protected]> Co-authored-by: Alexander Lednev <[email protected]>
- Loading branch information
1 parent
52ebab6
commit 62b9a92
Showing
84 changed files
with
924 additions
and
290 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,34 @@ | ||
if(DEFINED POLLY_COMPILER_GCC_13_CMAKE_) | ||
return() | ||
else() | ||
set(POLLY_COMPILER_GCC_13_CMAKE_ 1) | ||
endif() | ||
|
||
find_program(CMAKE_C_COMPILER gcc-13) | ||
find_program(CMAKE_CXX_COMPILER g++-13) | ||
|
||
if(NOT CMAKE_C_COMPILER) | ||
fatal_error("gcc-13 not found") | ||
endif() | ||
|
||
if(NOT CMAKE_CXX_COMPILER) | ||
fatal_error("g++-13 not found") | ||
endif() | ||
|
||
set( | ||
CMAKE_C_COMPILER | ||
"${CMAKE_C_COMPILER}" | ||
CACHE | ||
STRING | ||
"C compiler" | ||
FORCE | ||
) | ||
|
||
set( | ||
CMAKE_CXX_COMPILER | ||
"${CMAKE_CXX_COMPILER}" | ||
CACHE | ||
STRING | ||
"C++ compiler" | ||
FORCE | ||
) |
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,2 @@ | ||
include(${CMAKE_CURRENT_LIST_DIR}/compiler/gcc-13.cmake) | ||
include(${CMAKE_CURRENT_LIST_DIR}/cxx20.cmake) |
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
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
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
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
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 |
---|---|---|
|
@@ -24,4 +24,3 @@ target_link_libraries(consensus INTERFACE | |
grandpa | ||
) | ||
kagome_install(consensus) | ||
kagome_clear_objects(consensus) |
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 |
---|---|---|
|
@@ -16,3 +16,4 @@ target_link_libraries(babe | |
consensus_common | ||
) | ||
kagome_install(babe) | ||
kagome_clear_objects(babe) |
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
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
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
Oops, something went wrong.