From d2f6c83671db90c88652f21186a0a84c59c30c04 Mon Sep 17 00:00:00 2001 From: Hans Schoenemann Date: Thu, 23 Jan 2025 11:46:21 +0100 Subject: [PATCH] libsingular for Singular 4.4.1 --- Project.toml | 2 +- deps/src/singular.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 48464bfaa..5e8bc8808 100644 --- a/Project.toml +++ b/Project.toml @@ -29,7 +29,7 @@ Pidfile = "1.3" Pkg = "1.6" Random = "1.6" RandomExtensions = "0.4.2" -Singular_jll = "~404.001.700" +Singular_jll = "~404.100.000" Statistics = "1.6" julia = "1.6" lib4ti2_jll = "1.6.10" diff --git a/deps/src/singular.cpp b/deps/src/singular.cpp index f21a4b6cd..a7ee4de48 100644 --- a/deps/src/singular.cpp +++ b/deps/src/singular.cpp @@ -263,6 +263,10 @@ JLCXX_MODULE define_julia_module(jlcxx::Module & Singular) return siRand(); }); + Singular.method("set_cpus", [](int c) { + return siSetCpus(c); + }); + singular_define_coeffs(Singular); singular_define_rings(Singular); singular_define_ideals(Singular);