-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(compiler): add concrete-sys rust bindings
- Loading branch information
Showing
52 changed files
with
2,209 additions
and
812 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
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
28 changes: 28 additions & 0 deletions
28
compilers/concrete-compiler/compiler/cmake/modules/FetchHpxLibrary.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
include(FetchContent) | ||
|
||
function(fetch_hpx_library) | ||
FetchContent_Declare( | ||
HPX | ||
GIT_REPOSITORY https://github.com/STEllAR-GROUP/hpx.git | ||
GIT_TAG stable # release 1.10 + fixes for compilation with fopenmp with gcc and clang :,) | ||
GIT_SHALLOW TRUE | ||
GIT_PROGRESS TRUE | ||
) | ||
set(HPX_WITH_FETCH_ASIO ON CACHE BOOL INTERNAL) | ||
set(HPX_WITH_FETCH_HWLOC ON CACHE BOOL INTERNAL) | ||
set(HPX_WITH_FETCH_BOOST OFF CACHE BOOL INTERNAL) | ||
set(HPX_WITH_MALLOC system CACHE STRING INTERNAL) | ||
set(HPX_WITH_EXAMPLES OFF CACHE BOOL INTERNAL) | ||
set(HPX_WITH_TESTS OFF CACHE BOOL INTERNAL) | ||
set(HPX_WITH_STATIC_LINKING ON CACHE BOOL INTERNAL) | ||
set(HPX_WITH_PKGCONFIG OFF CACHE BOOL INTERNAL) | ||
set(HPX_WITH_MAX_CPU_COUNT "" CACHE STRING INTERNAL) | ||
set(HPX_WITH_CXX_STANDARD 17 CACHE STRING INTERNAL) | ||
set(HPX_WITH_COMPILER_WARNINGS OFF CACHE BOOL INTERNAL) | ||
unset(CMAKE_CXX_STANDARD CACHE) | ||
unset(CMAKE_CXX_STANDARD) | ||
remove_definitions("-Wall ") | ||
remove_definitions("-Werror ") | ||
remove_definitions("-Wfatal-errors") | ||
FetchContent_MakeAvailable(HPX) | ||
endfunction() |
21 changes: 0 additions & 21 deletions
21
compilers/concrete-compiler/compiler/include/concretelang/Runtime/utils.h
This file was deleted.
Oops, something went wrong.
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
2 changes: 2 additions & 0 deletions
2
compilers/concrete-compiler/compiler/lib/Bindings/CMakeLists.txt
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
if(CONCRETELANG_BINDINGS_PYTHON_ENABLED) | ||
add_subdirectory(Python) | ||
endif() | ||
|
||
add_subdirectory(Rust) |
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
3 changes: 3 additions & 0 deletions
3
compilers/concrete-compiler/compiler/lib/Bindings/Rust/.gitignore
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,3 @@ | ||
target | ||
Cargo.lock | ||
.cargo |
Oops, something went wrong.