Skip to content

Commit 63c9eec

Browse files
authored
Merge pull request #4 from RWUSTC/main
Minor change to the package
2 parents 60b9a4e + 2cf7d12 commit 63c9eec

File tree

4 files changed

+86
-1
lines changed

4 files changed

+86
-1
lines changed

script_templates/Singular_script_template.sing

Lines changed: 40 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
#this script is for demonstration with command line environment: no gspc-monitor
3+
#basic set up for pfd-parallel
4+
export software_ROOT=~/singular-gpispace
5+
##one may change this to their own $software_ROOT
6+
. $software_ROOT/spack/share/spack/setup-env.sh
7+
spack load pfd-parallel
8+
#set up ssh-server
9+
#ssh-keygen -t rsa -b 4096 -N '' -f "${HOME}/.ssh/id_rsa"
10+
#ssh-copy-id -f -i "${HOME}/.ssh/id_rsa" "${HOSTNAME}"
11+
#set up folders for computation nodes, input and output
12+
rm -rf $outputFolder
13+
mkdir -p $outputFolder
14+
##set output folder, one should substitute $outputFolder to their own ones
15+
#change the raw data into the form of listnumden form via mathematica
16+
#math -script listnumden-converter.wl $software_ROOT/factored $software_ROOT/factoredinputs
17+
hostname > $software_ROOT/nodefile
18+
mkdir -p $software_ROOT/tempdir
19+
#start Singular embedded in pfd-parallel and run the test script
20+
cd $software_ROOT
21+
SINGULARPATH="$PFD_INSTALL_DIR/LIB" $SINGULAR_INSTALL_DIR/bin/Singular Singular_script_template.sing
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
#this script is for demonstration with remote desktop environment: with gspc-monitor
3+
#basic set up for pfd-parallel
4+
export software_ROOT=~/singular-gpispace
5+
##one may change this to their own $software_ROOT
6+
. $software_ROOT/spack/share/spack/setup-env.sh
7+
spack load pfd-parallel
8+
#set up ssh-server
9+
ssh-keygen -t rsa -b 4096 -N '' -f "${HOME}/.ssh/id_rsa"
10+
ssh-copy-id -f -i "${HOME}/.ssh/id_rsa" "${HOSTNAME}"
11+
#set up folders for computation nodes, input and output
12+
rm -rf $outputFolder
13+
mkdir -p $outputFolder
14+
##set output folder, one should substitute $outputFolder to their own ones
15+
hostname > $software_ROOT/nodefile
16+
rm -rf $software_ROOT/tempdir
17+
mkdir -p $software_ROOT/tempdir
18+
#start monitor
19+
hostname > $software_ROOT/loghostfile
20+
$PFD_INSTALL_DIR/libexec/bundle/gpispace/bin/gspc-monitor --port 6439 &
21+
#start Singular embedded in pfd-parallel and run the test script
22+
cd $software_ROOT
23+
SINGULARPATH="$PFD_INSTALL_DIR/LIB" $SINGULAR_INSTALL_DIR/bin/Singular Singular_script_template.sing
24+

singular/pfd.lib

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3837,7 +3837,7 @@ proc parsePfdSingleEntryArgs(list #)
38373837
string pfd_implementation = "Leinartas";
38383838
int ignore_nonlin = 0;
38393839
intvec steps = 1,1,1,1;
3840-
int save_int_res = 0;
3840+
int save_int_res = 1;
38413841
int parallelize = 0;
38423842
string input_format = "ssi";
38433843
string output_format = "ssi,cleartext,listnumden,indexed_denominator";

0 commit comments

Comments
 (0)