-
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.
Merge pull request #6 from houpc/houpc
Add dSigma/dk for m*
- Loading branch information
Showing
20 changed files
with
8,141 additions
and
75 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
function GVcompileC_so(partition, datatype::DataType=Float64; c_source=joinpath(@__DIR__, "source_codeGV", "func_sigmaGV.c"), | ||
lib_path=joinpath(@__DIR__, "source_codeGV"), lib_name="sigmaGV", compiler::String="gcc", isnative::Bool=false) | ||
lib = joinpath(lib_path, "$lib_name.so") | ||
### compile C source file to *.so library | ||
if isnative | ||
command = `$compiler -shared -fPIC -o $lib $c_source -O3 -march=native` | ||
else | ||
command = `$compiler -shared -fPIC -o $lib $c_source -O3` | ||
end | ||
run(command) | ||
|
||
### generate the C wrapper Julia functions and save them in the same path of C library | ||
GV_Cwrapper(partition, datatype, lib_path=lib_path, lib_name=lib_name) | ||
end |
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.