Skip to content

Instantly share code, notes, and snippets.

View edgarcosta's full-sized avatar

Edgar Costa edgarcosta

View GitHub Profile
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by Sage configure 10.4.beta6, which was
generated by GNU Autoconf 2.72. Invocation command line was
$ ./configure --with-system-givaro=no --no-create --no-recursion
## --------- ##
## Platform. ##
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by Sage configure 10.4.beta6, which was
generated by GNU Autoconf 2.72. Invocation command line was
$ ./configure --with-system-givaro=no --no-create --no-recursion
## --------- ##
## Platform. ##
function MultiFork(n)
res := [];
for i in [1..n] do
if #res eq i - 1 then // only the parent gets inside of this loop
f := Fork();
if f ne 0 then // parent branch
Append(~res, f);
else
return [], i; // child branch
end if;
function MultiFork(n)
res := [];
for i in [1..n] do
if #res eq i - 1 then
f := Fork();
if f ne 0 then
Append(~res, f);
else
return [], i;
end if;
function MultiFork(n)
res := [];
for i in [1..n] do
if #res eq i - 1 then
f := Fork();
if f ne 0 then
Append(~res, f);
else
return [], i;
end if;
function MultiFork(n)
parentpid := Getpid();
IsParentProcess := func<|parentpid eq Getpid()>;
res := [];
for i in [1..n] do
if IsParentProcess() then
Append(~res, Fork());
if not IsParentProcess() then
return [], i;
end if;
Attach("multifork.m");
r := 0;
b, r := MultiFork(10);
if r ne 0 then
exit 0;
end if;
// foo bar
.github/codecov.yml | 4 +
.github/workflows/CI.yml | 175 +-
.github/workflows/push_CI.yml | 65 +-
.github/workflows/release.yml | 124 +-
.gitignore | 10 +-
AUTHORS | 4 +-
CMake/FindCBLAS.cmake | 33 +-
CMake/Findgmp.cmake | 66 +
CMake/Findmpfr.cmake | 57 +
CMake/cmake_config.h.in | 5 +-
.github/codecov.yml | 4 +
.github/workflows/CI.yml | 175 +-
.github/workflows/push_CI.yml | 65 +-
.github/workflows/release.yml | 124 +-
.gitignore | 10 +-
AUTHORS | 4 +-
CMake/FindCBLAS.cmake | 33 +-
CMake/Findgmp.cmake | 66 +
CMake/Findmpfr.cmake | 57 +
CMake/cmake_config.h.in | 5 +-
.github/codecov.yml | 4 +
.github/workflows/CI.yml | 175 +-
.github/workflows/push_CI.yml | 65 +-
.github/workflows/release.yml | 124 +-
.gitignore | 10 +-
AUTHORS | 4 +-
CMake/FindCBLAS.cmake | 33 +-
CMake/Findgmp.cmake | 66 +
CMake/Findmpfr.cmake | 57 +
CMake/cmake_config.h.in | 5 +-