-
Notifications
You must be signed in to change notification settings - Fork 44
add paillier algorithm support with denglin's gpu card #112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
shengweigit
wants to merge
8
commits into
secretflow:main
Choose a base branch
from
shengweigit:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
d017d80
add paillier algorithm support with denglin's gpu card with fix pull …
shengweigit 4a2ceac
remove redundancy include file
shengweigit 2733cd9
add paillier algorithm support with denglin's gpu card with fix pull …
shengweigit a6b5e3e
add paillier algorithm support with denglin's gpu card
shengweigit a3d345c
Merge remote-tracking branch 'upstream/main' into main
shengweigit f7c2846
add paillier algorithm support with denglin's gpu card
shengweigit 8954536
add paillier algorithm support with denglin's gpu card with fix pull …
shengweigit 8459cd1
replace mp_digit with uint64_t
shengweigit File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
heu/library/algorithms/paillier_dl/cgbn_wrapper/CMakeLists.txt
This file contains hidden or 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,33 @@ | ||
| project(paillier_dl) | ||
| cmake_minimum_required(VERSION 3.1) | ||
|
|
||
| set(CMAKE_CXX_COMPILER "dlcc") | ||
| if ("$ENV{DLI_V2}" STREQUAL "ON") | ||
| set(gpu_arch --cuda-gpu-arch=dlgput64) | ||
| set(src_path src_gen2) | ||
| set(file_suffix ".cu.cc") | ||
| message(STATUS "***v2 sdk***") | ||
| else() | ||
| set(gpu_arch --cuda-gpu-arch=dlgpuc64) | ||
| set(src_path src_gen1) | ||
| set(file_suffix "*") | ||
| message(STATUS "***v1 sdk***") | ||
| endif() | ||
|
|
||
| include_directories(${CMAKE_SOURCE_DIR}) | ||
| include_directories(${CMAKE_SOURCE_DIR}/third_party) | ||
| include_directories(${CMAKE_SOURCE_DIR}/third_party/cgbn/include) | ||
| include_directories(${CMAKE_SOURCE_DIR}/third_party/msgpack/include) | ||
| include_directories(${CMAKE_SOURCE_DIR}/third_party/yacl) | ||
| include_directories(${CMAKE_SOURCE_DIR}/third_party/absl) | ||
| include_directories(${CMAKE_SOURCE_DIR}/third_party/fmt/include) | ||
| include_directories(${CMAKE_SOURCE_DIR}/third_party/googletest/googletest/include) | ||
| include_directories(${CMAKE_SOURCE_DIR}/third_party/gmp-6.2.1) | ||
|
|
||
| file(GLOB_RECURSE src_files *.cc) | ||
| add_library(cgbn_wrapper SHARED ${src_files}) | ||
| target_compile_options(cgbn_wrapper PRIVATE | ||
| -Wno-c++11-narrowing -DNDEBUG -std=c++17 | ||
| -Wdouble-promotion -fPIC ${gpu_arch} | ||
| -x cuda -D__CUDA_ARCH__=300) | ||
| target_link_libraries(cgbn_wrapper PRIVATE curt) | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.