Adds CMAKE_POSITION_INDEPENDENT_CODE and CMAKE_CUDA_FLAGS
This commit is contained in:
parent
760af8859f
commit
2a72c74a82
1 changed files with 2 additions and 0 deletions
|
|
@ -177,6 +177,8 @@ fn main() {
|
||||||
config.define("GGML_CUDA", "ON");
|
config.define("GGML_CUDA", "ON");
|
||||||
config.define("NVCC_APPEND_FLAGS", "-fPIC");
|
config.define("NVCC_APPEND_FLAGS", "-fPIC");
|
||||||
config.cxxflag("-fPIC");
|
config.cxxflag("-fPIC");
|
||||||
|
config.define("CMAKE_POSITION_INDEPENDENT_CODE", "ON");
|
||||||
|
config.define("CMAKE_CUDA_FLAGS", "-Xcompiler=-fPIC");
|
||||||
}
|
}
|
||||||
|
|
||||||
if cfg!(feature = "hipblas") {
|
if cfg!(feature = "hipblas") {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue