Explorar o código

libtorch: remove nvtx dependency since v2.4.1 (#6158)

icysky hai 8 meses
pai
achega
71b100e8f6
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      packages/l/libtorch/xmake.lua

+ 3 - 1
packages/l/libtorch/xmake.lua

@@ -62,7 +62,9 @@ package("libtorch")
         end
         if package:config("cuda") then
             package:add("deps", "cuda", {configs = {utils = {"nvrtc", "cudnn", "cufft", "curand", "cublas", "cudart_static"}}})
-            package:add("deps", "nvtx")
+            if package:version():lt("2.5.0") then
+                package:add("deps", "nvtx")
+            end
         end
         if package:config("distributed") then
             package:add("deps", "libuv")