Skip to content

Commit

Permalink
added support for sm75
Browse files Browse the repository at this point in the history
  • Loading branch information
AmineDiro committed Aug 17, 2023
1 parent cc5a98a commit dadd757
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/ggml/sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,8 @@ fn enable_cublas(build: &mut cc::Build, out_dir: &Path) {
.arg("--compile")
.arg("-cudart")
.arg("static")
.arg("--generate-code=arch=compute_52,code=[compute_52,sm_52]")
.arg("--generate-code=arch=compute_61,code=[compute_61,sm_61]")
.arg("--generate-code=arch=compute_75,code=[compute_75,sm_75]")
.arg("-D_WINDOWS")
.arg("-DNDEBUG")
Expand Down Expand Up @@ -360,6 +362,8 @@ fn enable_cublas(build: &mut cc::Build, out_dir: &Path) {
.arg("-Illama-cpp/include/ggml")
.arg("-mtune=native")
.arg("-pthread")
.arg("--generate-code=arch=compute_52,code=[compute_52,sm_52]")
.arg("--generate-code=arch=compute_61,code=[compute_61,sm_61]")
.arg("--generate-code=arch=compute_75,code=[compute_75,sm_75]")
.arg("-DGGML_USE_CUBLAS")
.arg("-I/usr/local/cuda/include")
Expand Down

0 comments on commit dadd757

Please sign in to comment.