Skip to content

Commit

Permalink
[rust] Download cu124 jni library for cuda (#3327)
Browse files Browse the repository at this point in the history
  • Loading branch information
xyang16 authored Jul 11, 2024
1 parent dfdf93b commit c6e3cdd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public final class LibUtils {
private static final Pattern VERSION_PATTERN =
Pattern.compile(
"(\\d+\\.\\d+\\.\\d+(-[a-z]+)?)-(\\d+\\.\\d+\\.\\d+)(-SNAPSHOT)?(-\\d+)?");
private static final String FLAVOR_CU124 = "cu124";

private static EngineException exception;

Expand Down Expand Up @@ -106,7 +107,7 @@ private static Path copyJniLibrary(String[] libs) {
String jniVersion = matcher.group(1);
String djlVersion = matcher.group(3);

downloadJniLib(dir, path, djlVersion, jniVersion, classifier, flavor);
downloadJniLib(dir, path, djlVersion, jniVersion, classifier, FLAVOR_CU124);
return dir.toAbsolutePath();
}

Expand Down

0 comments on commit c6e3cdd

Please sign in to comment.