소스 검색

Auto-update hypre to v2.30.0 (#3239)

* Update hypre to v2.30.0

* Update xmake.lua

* Update xmake.lua

---------

Co-authored-by: Jérôme Leclercq <[email protected]>
ruki 1 년 전
부모
커밋
eded53fb1d
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 4 3
      packages/h/hypre/xmake.lua

+ 4 - 3
packages/h/hypre/xmake.lua

@@ -1,11 +1,11 @@
 package("hypre")
-
     set_homepage("https://computing.llnl.gov/projects/hypre-scalable-linear-solvers-multigrid-methods")
     set_description("Parallel solvers for sparse linear systems featuring multigrid methods.")
     set_license("Apache-2.0")
 
     add_urls("https://github.com/hypre-space/hypre/archive/refs/tags/$(version).tar.gz",
              "https://github.com/hypre-space/hypre.git")
+    add_versions("v2.30.0", "8e2af97d9a25bf44801c6427779f823ebc6f306438066bba7fcbc2a5f9b78421")
     add_versions("v2.20.0", "5be77b28ddf945c92cde4b52a272d16fb5e9a7dc05e714fc5765948cba802c01")
     add_versions("v2.23.0", "8a9f9fb6f65531b77e4c319bf35bfc9d34bf529c36afe08837f56b635ac052e2")
 
@@ -15,11 +15,12 @@ package("hypre")
     end
 
     add_deps("cmake")
+
     on_load("windows", "macosx", "linux", function (package)
         package:add("deps", package:config("blas"))
     end)
 
-    on_install("windows", "linux", "macosx", function (package)
+    on_install("windows|x86", "windows|x64", "linux", "macosx", function (package)
         os.cd("src")
         local configs = {"-DHYPRE_WITH_MPI=OFF", "-DHYPRE_BUILD_EXAMPLES=OFF", "-DHYPRE_BUILD_TESTS=OFF", "-DHYPRE_USING_HYPRE_BLAS=OFF", "-DHYPRE_USING_HYPRE_LAPACK=OFF"}
         table.insert(configs, "-DHYPRE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
@@ -28,5 +29,5 @@ package("hypre")
     end)
 
     on_test(function (package)
-        assert(package:has_cfuncs("HYPRE_Init", {includes = "HYPRE_utilities.h"}))
+        assert(package:has_cfuncs(package:version():ge("v2.29.0") and "HYPRE_Initialize" or "HYPRE_Init", {includes = "HYPRE_utilities.h"}))
     end)