Skip to content

Commit f7504b5

Browse files
authored
Merge pull request #279 from wegank/secondary-modular-phase-data-race-fix-0
Fix a data race during secondary modular phase
2 parents c018fa5 + cead076 commit f7504b5

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/msolve.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
make --version
7777
autoconf --version
7878
libtool --version
79-
echo "MAKE=make -j 2 --output-sync=target" >> $GITHUB_ENV
79+
echo "MAKE=make -j$(expr $(nproc) + 1) --output-sync=target" >> $GITHUB_ENV
8080
- name: "Build FLINT"
8181
run: |
8282
git clone --depth=1 https://github.com/flintlib/flint

src/neogb/f4.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,9 @@ static int32_t initialize_f4(
358358
md->hcm = (hi_t *)malloc(sizeof(hi_t));
359359

360360
if (gmd->fc != fc) {
361-
reset_function_pointers(fc, md->laopt);
361+
if (gmd->f4_qq_round != 2) {
362+
reset_function_pointers(fc, md->laopt);
363+
}
362364
bs = copy_basis_mod_p(gbs, md);
363365
if (md->laopt < 40) {
364366
if (md->trace_level != APPLY_TRACER) {

src/neogb/nf.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ bs_t *core_nf(
6767

6868
/* reset to exact linear algebra for normal form computation */
6969
md->laopt = 2;
70-
set_function_pointers(md);
70+
if (md->f4_qq_round != 2) {
71+
set_function_pointers(md);
72+
}
7173

7274
/* matrix holding sparse information generated
7375
* during symbolic preprocessing */

0 commit comments

Comments
 (0)