ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 11 Sep 2022 06:06:03 +0200How to change the default pari/sagehttps://ask.sagemath.org/question/63963/how-to-change-the-default-parisage/Hi, and thank you for your hard work.
I downloaded sage 9.7/sourcecode over WSL/Ubunttu 20.04 and compiled and installed
it. without problems.
then working with pari. I noticed it is slower than usual.
I downloaded pari seperately and compiled it with ./Configure --tune --mt=pthread
now it is faster.
So I would like to change the default sage/pari to my new gp-sta pari
How i can do this?
Thank youFri, 09 Sep 2022 17:06:48 +0200https://ask.sagemath.org/question/63963/how-to-change-the-default-parisage/Comment by mabd for <p>Hi, and thank you for your hard work.</p>
<p>I downloaded sage 9.7/sourcecode over WSL/Ubunttu 20.04 and compiled and installed
it. without problems.
then working with pari. I noticed it is slower than usual.</p>
<p>I downloaded pari seperately and compiled it with ./Configure --tune --mt=pthread
now it is faster.
So I would like to change the default sage/pari to my new gp-sta pari
How i can do this?
Thank you</p>
https://ask.sagemath.org/question/63963/how-to-change-the-default-parisage/?comment=63979#post-id-63979Thank you very much for your time and patient. Really I appreciate it.
I will do it.
Some side remarks that might be helpful for some one over wsl/ubuntu20 or 22
about building sage
1- ssd helps a lot. over ssd it takes less than 2 hours
2-i did it for ubuntu 22. I had ram problems and the compilation crashed twice
but managed to finish with "make -j6" make launchs multi-make and needs ram
which is more problamitic with ubuntu 22.
3- Actually, I failed to install CUDA/Nvidia, it crashes
over Ubuntu 22 and that why i switched to ubuntu 20 instead of 22
4- Over Ubuntu 22 I had no problems with sage/pari the default is already
2.13.3 compiled Oct 25 2021, Good and Tunned.
5- Building over Ubuntu 20 on normal hard Disk "make -j8" it took 6 hours
but no ram problems or crashs
Thank youSun, 11 Sep 2022 06:06:03 +0200https://ask.sagemath.org/question/63963/how-to-change-the-default-parisage/?comment=63979#post-id-63979Comment by John Palmieri for <p>Hi, and thank you for your hard work.</p>
<p>I downloaded sage 9.7/sourcecode over WSL/Ubunttu 20.04 and compiled and installed
it. without problems.
then working with pari. I noticed it is slower than usual.</p>
<p>I downloaded pari seperately and compiled it with ./Configure --tune --mt=pthread
now it is faster.
So I would like to change the default sage/pari to my new gp-sta pari
How i can do this?
Thank you</p>
https://ask.sagemath.org/question/63963/how-to-change-the-default-parisage/?comment=63977#post-id-63977As far as replacing Sage's current files with your own, I have no experience with that, and it might very well break something.Sat, 10 Sep 2022 20:26:08 +0200https://ask.sagemath.org/question/63963/how-to-change-the-default-parisage/?comment=63977#post-id-63977Comment by John Palmieri for <p>Hi, and thank you for your hard work.</p>
<p>I downloaded sage 9.7/sourcecode over WSL/Ubunttu 20.04 and compiled and installed
it. without problems.
then working with pari. I noticed it is slower than usual.</p>
<p>I downloaded pari seperately and compiled it with ./Configure --tune --mt=pthread
now it is faster.
So I would like to change the default sage/pari to my new gp-sta pari
How i can do this?
Thank you</p>
https://ask.sagemath.org/question/63963/how-to-change-the-default-parisage/?comment=63976#post-id-63976If Sage insists on building its own `pari`, then you can pass configure options to it by setting the environment variable `PARI_CONFIGURE`. You could conceivably try setting `SAGE_TUNE_PARI` to "yes": search for these variables in https://doc.sagemath.org/html/en/installation/source.html#environment-variables.Sat, 10 Sep 2022 20:25:30 +0200https://ask.sagemath.org/question/63963/how-to-change-the-default-parisage/?comment=63976#post-id-63976Comment by John Palmieri for <p>Hi, and thank you for your hard work.</p>
<p>I downloaded sage 9.7/sourcecode over WSL/Ubunttu 20.04 and compiled and installed
it. without problems.
then working with pari. I noticed it is slower than usual.</p>
<p>I downloaded pari seperately and compiled it with ./Configure --tune --mt=pthread
now it is faster.
So I would like to change the default sage/pari to my new gp-sta pari
How i can do this?
Thank you</p>
https://ask.sagemath.org/question/63963/how-to-change-the-default-parisage/?comment=63975#post-id-63975To speed up the build process, did you read `README.md`? Step 10 describes how to build in parallel, and this can speed things up greatly.Sat, 10 Sep 2022 20:23:00 +0200https://ask.sagemath.org/question/63963/how-to-change-the-default-parisage/?comment=63975#post-id-63975Comment by John Palmieri for <p>Hi, and thank you for your hard work.</p>
<p>I downloaded sage 9.7/sourcecode over WSL/Ubunttu 20.04 and compiled and installed
it. without problems.
then working with pari. I noticed it is slower than usual.</p>
<p>I downloaded pari seperately and compiled it with ./Configure --tune --mt=pthread
now it is faster.
So I would like to change the default sage/pari to my new gp-sta pari
How i can do this?
Thank you</p>
https://ask.sagemath.org/question/63963/how-to-change-the-default-parisage/?comment=63974#post-id-63974You should create a new git clone and try with that one. Also, read the output from `./configure`, which is recorded in the file `config.log`: there will be a section marked "## Checking whether SageMath should install SPKG pari... ##". Read what it says. I am not a `pari` expert or a `configure` expert, but it looks like, from the file `build/pkgs/pari/spkg-configure.m4`, that Sage needs `pari` but also `libpari`, `pari_elldata`, `pari_galdata`, and some other packages. Again, read the output from `./configure` to see if anything is missing.Sat, 10 Sep 2022 20:21:14 +0200https://ask.sagemath.org/question/63963/how-to-change-the-default-parisage/?comment=63974#post-id-63974Comment by mabd for <p>Hi, and thank you for your hard work.</p>
<p>I downloaded sage 9.7/sourcecode over WSL/Ubunttu 20.04 and compiled and installed
it. without problems.
then working with pari. I noticed it is slower than usual.</p>
<p>I downloaded pari seperately and compiled it with ./Configure --tune --mt=pthread
now it is faster.
So I would like to change the default sage/pari to my new gp-sta pari
How i can do this?
Thank you</p>
https://ask.sagemath.org/question/63963/how-to-change-the-default-parisage/?comment=63971#post-id-63971Hi, thank you for your comment
1)There is no tar file for 9.7 I used
git clone --branch develop https://github.com/sagemath/sage.git
---> so i should may be duplicate the sage/folder
2) sage didn't use the default os/pari
=========
over ubuntu i have three pari now
a) (os/pari) gp from anywhere will call an old
GP/PARI CALCULATOR Version 2.11.2 ( compiled: Jul 12 2019)
b) (mine/pari) a new pari that i compiled with --tune --mt=pthread
i called from inside its folder using
./gp
c) (sage/pari) from pari shell
sage --sh
gp
this is the not optimal used by sage
===========
can i replace the sage/pari files with the gp-sta (the new one)
PS: Both b and c have been ccompiled by the same local compiler
==========
it is painfull to recompile sage it took 6 hoursSat, 10 Sep 2022 10:32:15 +0200https://ask.sagemath.org/question/63963/how-to-change-the-default-parisage/?comment=63971#post-id-63971Comment by John Palmieri for <p>Hi, and thank you for your hard work.</p>
<p>I downloaded sage 9.7/sourcecode over WSL/Ubunttu 20.04 and compiled and installed
it. without problems.
then working with pari. I noticed it is slower than usual.</p>
<p>I downloaded pari seperately and compiled it with ./Configure --tune --mt=pthread
now it is faster.
So I would like to change the default sage/pari to my new gp-sta pari
How i can do this?
Thank you</p>
https://ask.sagemath.org/question/63963/how-to-change-the-default-parisage/?comment=63964#post-id-63964The overall method would be to rebuild your version of Sage. First unpack the tarball into a new directory (don't overwrite the old one in case this experiment fails) and run `./configure`, and read the output to make sure it is detecting and will use the version of `pari` you've installed. If things look good, then compile it.Fri, 09 Sep 2022 19:51:35 +0200https://ask.sagemath.org/question/63963/how-to-change-the-default-parisage/?comment=63964#post-id-63964