Skip to content

Commit

Permalink
Merge pull request #71 from sbrunk/javacpp-1.5.10-stable
Browse files Browse the repository at this point in the history
Update to JavaCPP 1.5.10 stable and update device types
  • Loading branch information
sbrunk authored Jan 31, 2024
2 parents d700664 + 2320f6b commit 2fff591
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ ThisBuild / apiURL := Some(new URL("https://storch.dev/api/"))
val scrImageVersion = "4.0.34"
val pytorchVersion = "2.1.2"
val cudaVersion = "12.3-8.9"
val openblasVersion = "0.3.25"
val openblasVersion = "0.3.26"
val mklVersion = "2024.0"
ThisBuild / scalaVersion := "3.3.1"
ThisBuild / javaCppVersion := "1.5.10-SNAPSHOT"
ThisBuild / javaCppVersion := "1.5.10"
ThisBuild / resolvers ++= Resolver.sonatypeOssRepos("snapshots")

ThisBuild / githubWorkflowJavaVersions := Seq(JavaSpec.temurin("11"))
Expand Down
5 changes: 2 additions & 3 deletions core/src/main/scala/torch/Device.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ import org.bytedeco.pytorch
import scala.collection.immutable.ArraySeq

enum DeviceType:
case CPU, CUDA, MKLDNN, OPENGL, OPENCL, IDEEP, HIP, FPGA, ORT, XLA, Vulkan, Metal, XPU, MLC, Meta,
HPU, VE, Lazy,
COMPILE_TIME_MAX_DEVICE_TYPES
case CPU, CUDA, MKLDNN, OPENGL, OPENCL, IDEEP, HIP, FPGA, ORT, XLA, Vulkan, Metal, XPU, MPS, Meta,
HPU, VE, Lazy, IPU, MTIA, PrivateUse1, COMPILE_TIME_MAX_DEVICE_TYPES

object DeviceType:
val deviceTypesLowerCase: Seq[String] =
Expand Down

0 comments on commit 2fff591

Please sign in to comment.