SuperLU installation

Asked by john williams

I am trying to install SUPERLU on Ubuntu 18.04 but when type install in the INSTALL directory I get:
install: missing file operand
Please help.
Thanks,
John

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu superlu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

I assume that the command that you give is wrong.

I suggest that you try

sudo apt install libsuperlu5 libsuperlu-doc

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

It sounds like you downloaded something from the Web rather than the repositories. If this is the case can you please give a link to the site you used.

Revision history for this message
john williams (john1948) said :
#3

Hi,

This is what I get if I type: sudo apt install libsuperlu5 libsuperlu-doc

root@DESKTOP-8HR6ET2:/mnt/c# sudo apt install libsuperlu5 libsuperlu-doc
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libsuperlu-dev
The following NEW packages will be installed:
  libsuperlu-dev libsuperlu-doc libsuperlu5
0 upgraded, 3 newly installed, 0 to remove and 148 not upgraded.
Need to get 481 kB of archives.
After this operation, 6663 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libsuperlu5 amd64 5.2.1+dfsg1-3 [161 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libsuperlu-dev amd64 5.2.1+dfsg1-3 [16.3 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libsuperlu-doc all 5.2.1+dfsg1-3 [303 kB]
Fetched 481 kB in 0s (1741 kB/s)
Selecting previously unselected package libsuperlu5:amd64.
(Reading database ... 37256 files and directories currently installed.)
Preparing to unpack .../libsuperlu5_5.2.1+dfsg1-3_amd64.deb ...
Unpacking libsuperlu5:amd64 (5.2.1+dfsg1-3) ...
Selecting previously unselected package libsuperlu-dev:amd64.
Preparing to unpack .../libsuperlu-dev_5.2.1+dfsg1-3_amd64.deb ...
Unpacking libsuperlu-dev:amd64 (5.2.1+dfsg1-3) ...
Selecting previously unselected package libsuperlu-doc.
Preparing to unpack .../libsuperlu-doc_5.2.1+dfsg1-3_all.deb ...
Unpacking libsuperlu-doc (5.2.1+dfsg1-3) ...
Setting up libsuperlu5:amd64 (5.2.1+dfsg1-3) ...
Setting up libsuperlu-dev:amd64 (5.2.1+dfsg1-3) ...
Setting up libsuperlu-doc (5.2.1+dfsg1-3) ...
Processing triggers for libc-bin (2.27-3ubuntu1.2) ...
root@DESKTOP-8HR6ET2:/mnt/c# ls -l
ls: Config.Msi: Permission denied
ls: cannot access 'DumpStack.log.tmp': Permission denied
ls: cannot access 'hiberfil.sys': Permission denied
ls: IntelOptaneData: Permission denied
ls: cannot access 'pagefile.sys': Permission denied
ls: PerfLogs: Permission denied
ls: Recovery: Permission denied
ls: cannot access 'swapfile.sys': Permission denied
ls: 'System Volume Information': Permission denied
total 0

Regards,
John

Revision history for this message
Manfred Hampl (m-hampl) said :
#4

The installation of SuperLU went ok.

The error message for the other command ("ls -l" with "/mnt/c" as current directory) has nothing to do with SuperLU.
What exactly do you want to achieve?

Eventually the command
ls -l /mnt
helps revealing the cause of the error.

Revision history for this message
john williams (john1948) said :
#5

Hi Manfred,

Thank you for your help.

Eventually I would like to incorporate some of the SUPERLU routines into a CFD code which currently uses iterative solvers but I am probably a long way off that at the moment.

Presumably, it will be clear how to install and run the software I have just downloaded?

Regards,
John

Revision history for this message
Manfred Hampl (m-hampl) said :
#6

The SuperLU software is already installed.

For further information about the usage I suggest that you open the file
file:///usr/share/doc/libsuperlu-dev/html/index.html
in your web browser and read the documentation.

Revision history for this message
john williams (john1948) said :
#7

Hi Manfred,

Thanks for this but my browser says this page cannot be accessed.

Regards,
John

Revision history for this message
Manfred Hampl (m-hampl) said :
#8

Sorry, my fault, the file name should have been

/usr/share/doc/libsuperlu-doc/html/index.html
or file:///usr/share/doc/libsuperlu-doc/html/index.html

Revision history for this message
john williams (john1948) said :
#9

Thanks again but I assume the docs will already have been downloaded from my initial command: sudo apt install libsuperlu5 libsuperlu-doc?

Please tell me where I can find these in my directory structure.

Regards,
John

Revision history for this message
Manfred Hampl (m-hampl) said :
#10

The file names that I gave in comment #8 include the full directory path. What else do you need?

Revision history for this message
Manfred Hampl (m-hampl) said :
#11

Or try something else:

Open a terminal window (e.g. by simultaneously pressing ctrl-alt-t) and enter the command (or copy/paste it)

xdg-open /usr/share/doc/libsuperlu-doc/html/index.html

Revision history for this message
john williams (john1948) said :
#12

Presumably you mean open in Linux? I which case I get:

root@DESKTOP-8HR6ET2:/home/john# xdg-open /usr/share/doc/libsuperlu-doc/html/index.html
/usr/bin/www-browser: line 116: reg.exe: command not found
Start : This command cannot be run due to the error: The system cannot find the file specified.
At line:1 char:1
+ Start "/usr/share/doc/libsuperlu-doc/html/index.html"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidOperation: (:) [Start-Process], InvalidOperationException
    + FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand

Regards,
John

Revision history for this message
Manfred Hampl (m-hampl) said :
#13

There is something strange in your system.

What is the output of the commands

uname -a
lsb_release -crid
apt-cache policy xdg-utils

Revision history for this message
john williams (john1948) said :
#14

Hi Manfred,

Please see:
root@DESKTOP-8HR6ET2:/home/john# uname -a
Linux DESKTOP-8HR6ET2 4.4.0-19041-Microsoft #488-Microsoft Mon Sep 01 13:43:00 PST 2020 x86_64 x86_64 x86_64 GNU/Linux
root@DESKTOP-8HR6ET2:/home/john# lsb_release-crid
lsb_release-crid: command not found
root@DESKTOP-8HR6ET2:/home/john# lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic
root@DESKTOP-8HR6ET2:/home/john# apt-cache policy xdg-utils
xdg-utils:
  Installed: 1.1.2-1ubuntu2.5
  Candidate: 1.1.2-1ubuntu2.5
  Version table:
 *** 1.1.2-1ubuntu2.5 500
        500 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
        100 /var/lib/dpkg/status
     1.1.2-1ubuntu2 500
        500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
root@DESKTOP-8HR6ET2:/home/john#

Thanks,
John

-----Original Message-----
From: <email address hidden> <email address hidden> On Behalf Of Manfred Hampl
Sent: 28 May 2021 19:51
To: JJR Williams <email address hidden>
Subject: Re: [Question #697286]: SuperLU installation

Your question #697286 on superlu in Ubuntu changed:
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fanswers.launchpad.net%2Fubuntu%2F%2Bsource%2Fsuperlu%2F%2Bquestion%2F697286&amp;data=04%7C01%7C%7Cd0e73c79c33c498a949008d92209899c%7C569df091b01340e386eebd9cb9e25814%7C0%7C1%7C637578246629325677%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=JTqgklUgwUR%2BzLHDW%2Flsln95XsbwqnsWfUY6oqtXyxI%3D&amp;reserved=0

    Status: Open => Needs information

Manfred Hampl requested more information:
There is something strange in your system.

What is the output of the commands

uname -a
lsb_release -crid
apt-cache policy xdg-utils

--
To answer this request for more information, you can either reply to this email or enter your reply at the following page:
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fanswers.launchpad.net%2Fubuntu%2F%2Bsource%2Fsuperlu%2F%2Bquestion%2F697286&amp;data=04%7C01%7C%7Cd0e73c79c33c498a949008d92209899c%7C569df091b01340e386eebd9cb9e25814%7C0%7C1%7C637578246629325677%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=JTqgklUgwUR%2BzLHDW%2Flsln95XsbwqnsWfUY6oqtXyxI%3D&amp;reserved=0

You received this question notification because you asked the question.

Revision history for this message
john williams (john1948) said :
#15

Hi Manfred,

Please tell me where I can find the downloaded software in my directory structure.

Many thanks,
John

Revision history for this message
Manfred Hampl (m-hampl) said :
#16

Im am sorry, I do not have any experience with Ubuntu on the Windows subsystem.
I do not know whether (and eventually how) you can access the Ubuntu files in Windows.

Revision history for this message
john williams (john1948) said :
#17

Thanks Manfred.

Are you saying that I should not have typed: sudo apt install libsuperlu5 libsuperlu-doc?

My original query was: I am trying to install SUPERLU on Ubuntu 18.04 but when type install in the INSTALL directory I get:
install: missing file operand

Which seems a problem with a csh file -
#!/bin/csh

set ofile = install.out # output file

echo '---- SINGLE PRECISION' >! $ofile
./testslamch >> $ofile
echo '' >> $ofile
echo ---- DOUBLE PRECISION >> $ofile
./testdlamch >> $ofile
echo '' >> $ofile
echo ---- TIMER >> $ofile
./testtimer >> $ofile

Regards,
John

Revision history for this message
Manfred Hampl (m-hampl) said :
#18

There are two possibilities to install software on Ubuntu:

1. With the package management system.
In the repositories for Ubuntu there are readymade packages with software for easy install on Ubuntu systems.
SuperLU is such software. In the Ubuntu repositories it is split in a number of different packages, and the command to install it with the Ubuntu package manager is "sudo apt install <packagename>", in your case "sudo apt install libsuperlu5 libsuperlu-doc"

2. From the original source downloaded from elsewhere.
If certain software is not available in the Ubuntu package repository, or if you need a specific different version or ..., then of course you can also download and install software from elsewhere.
In that case you have to investigate how to build and install the software.
The command "install" is for sure not the right one.

Revision history for this message
john williams (john1948) said :
#19

Thankyou Manfred for your time and patience.

I downloaded SuperLU_MT from:

https://portal.nersc.gov/project/sparse/superlu/

and went to the INSTALL subdirectory thinking that was the right thing to do.

Apart from the csh error things seemed to go as planned and that I would soon be running example cases.

Regards,
John
ps what should I have done?

Revision history for this message
Manfred Hampl (m-hampl) said :
#20

If you want to use the version that you have downloaded, then you should uninstall the Ubuntu-provided version (to avoid confusion which version you are using, potentially leading to conflicts).

sudo apt purge --autoremove libsuperlu5 libsuperlu-doc libsuperlu-dev

And then you have to install that other version.

What you have downloaded probably is a file whose name ends with .tar.gz, I assume it's superlu_5.2.2.tar.gz

First step is decompressing the contents. If you can go to the INSTALL directory, then I assume that you have already done the unpacking

But going to the INSTALL directory is not the right step. Go back to the main directory and look for a README file and follow the instructions in it.

Revision history for this message
john williams (john1948) said :
#21

Hi Manfred,

Many thanks again.

I originally (before contacting this forum) tried to do everything you have said - the README file says to type make in every subdirectory and only some work.

In the INSTALL directory I get:

root@DESKTOP-8HR6ET2:/mnt/c/SUPERLU/SuperLU_MT_3.1/INSTALL# make
Testing machines parameters and timer
csh install.csh
make: csh: Command not found

And if I just type install:
root@DESKTOP-8HR6ET2:/mnt/c/SUPERLU/SuperLU_MT_3.1/INSTALL# install
install: missing file operand
Try 'install --help' for more information.

To a non-expert linux user like me there seems to be something wrong with this csh file.

Regards,
John

Revision history for this message
Manfred Hampl (m-hampl) said :
#22

1. Again: "install" is not a valid command in this context.

2. Where do you see the instruction to execute "make" in all subdirectories?

The README for SuperLU 5.2.2 tells
   A Makefile is provided in each subdirectory. The installation can be done
   completely automatically by simply typing "make" at the top level.

3. "make: csh: Command not found"

You are missing the csh program on your system

sudo apt install csh

I assume that also other required programs may be missing. If you want to compile programs, then a standard recommendation is to install a bunch of requisite packages with the command

sudo apt install build-essential

Revision history for this message
john williams (john1948) said :
#23

Thanks Manfred.

This seems to get over this problem and I have started (again) to go into each subdirectory to type: make.

Some of these work but others say: n

Makefile:55: recipe for target 'pstest' failed, for example.

Regards,
John
ps I had no idea that I had to install csh!

Revision history for this message
Manfred Hampl (m-hampl) said :
#24

Why do you go into each subdirectory?
Just type "make" in the top directory!

"The installation can be done completely automatically by simply typing "make" at the top level."

Revision history for this message
john williams (john1948) said :
#25

I have tried this both originally and again now but the example programs in EXAMPLE will still not work:

root@DESKTOP-8HR6ET2:/mnt/c/SUPERLU/SuperLU_MT_3.1/EXAMPLE# pslinsol -p4 < big.rua
pslinsol: command not found
root@DESKTOP-8HR6ET2:/mnt/c/SUPERLU/SuperLU_MT_3.1/EXAMPLE# ./pslinsol -p4 < big.rua
bash: ./pslinsol: No such file or directory

Very frustrating.

Regards,
John

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#26

What is the output of:

sudo updatedb; locate pslinsol

Thanks

Revision history for this message
john williams (john1948) said :
#27

Nothing - a blank line:

root@DESKTOP-8HR6ET2:/mnt/c/SUPERLU/SuperLU_MT_3.1/EXAMPLE# sudo updatedb; locate pslinsol
root@DESKTOP-8HR6ET2:/mnt/c/SUPERLU/SuperLU_MT_3.1/EXAMPLE#

Regards,
John

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#28

Then it's not a command on your system, so running random commands that simply don't exist won't work

Revision history for this message
Manfred Hampl (m-hampl) said :
#29

1. There was some kind of misunderstanding.
You always wrote that you want to use SuperLU, but apparently you have downloaded SuperLU_MT

2. Did you follow the instructions in README?
Did you run "make"?
Were there any error messages?

if pslinsol is not there, then it was not built - either because the step to build it was not executed at all, or that step failed.

Revision history for this message
john williams (john1948) said :
#30

Yes, I have downloaded the MT version - I didn't realise this was significant?

Yes, I have run make, several times in fact with different machine-specific make.inc files, from the top directory and there are no errors. Please see:

root@DESKTOP-8HR6ET2:/mnt/c/SUPERLU/SuperLU_MT_3.1# make
( cd SRC; make )
make[1]: Entering directory '/mnt/c/SUPERLU/SuperLU_MT_3.1/SRC'
ar cr ../lib/libsuperlu_mt_xe6.a sreadhb.o sreadrb.o smatgen.o psgssv.o psgssvx.o sgstrs.o sgsrfs.o sgscon.o slacon.o slangs.o sgsequ.o slaqgs.o spivotgrowth.o psmemory.o psutil.o smyblas2.o psgstrf.o psgstrf_init.o psgstrf_thread.o psgstrf_thread_init.o psgstrf_thread_finalize.o psgstrf_factor_snode.o psgstrf_snode_dfs.o psgstrf_snode_bmod.o psgstrf_panel_dfs.o psgstrf_panel_bmod.o psgstrf_copy_to_ucol.o psgstrf_pivotL.o psgstrf_column_dfs.o psgstrf_column_bmod.o psgstrf_bmod1D.o psgstrf_bmod2D.o psgstrf_bmod1D_mv2.o psgstrf_bmod2D_mv2.o ssp_blas2.o ssp_blas3.o superlu_timer.o dclock.o sp_ienv.o lsame.o xerbla.o util.o pmemory.o qrnzcnt.o cholnzcnt.o await.o get_perm_c.o mmd.o colamd.o sp_coletree.o pxgstrf_scheduler.o sp_colorder.o pxgstrf_mark_busy_descends.o pxgstrf_pruneL.o pxgstrf_super_bnd_dfs.o pxgstrf_relax_snode.o heap_relax_snode.o pxgstrf_synch.o pxgstrf_finalize.o slamch.o
ranlib ../lib/libsuperlu_mt_xe6.a
ar cr ../lib/libsuperlu_mt_xe6.a dreadhb.o dreadrb.o dmatgen.o pdgssv.o pdgssvx.o dgstrs.o dgsrfs.o dgscon.o dlacon.o dlangs.o dgsequ.o dlaqgs.o dpivotgrowth.o pdmemory.o pdutil.o dmyblas2.o pdgstrf.o pdgstrf_init.o pdgstrf_thread.o pdgstrf_thread_init.o pdgstrf_thread_finalize.o pdgstrf_factor_snode.o pdgstrf_snode_dfs.o pdgstrf_snode_bmod.o pdgstrf_panel_dfs.o pdgstrf_panel_bmod.o pdgstrf_copy_to_ucol.o pdgstrf_pivotL.o pdgstrf_column_dfs.o pdgstrf_column_bmod.o pdgstrf_bmod1D.o pdgstrf_bmod2D.o pdgstrf_bmod1D_mv2.o pdgstrf_bmod2D_mv2.o dsp_blas2.o dsp_blas3.o superlu_timer.o dclock.o sp_ienv.o lsame.o xerbla.o util.o pmemory.o qrnzcnt.o cholnzcnt.o await.o get_perm_c.o mmd.o colamd.o sp_coletree.o pxgstrf_scheduler.o sp_colorder.o pxgstrf_mark_busy_descends.o pxgstrf_pruneL.o pxgstrf_super_bnd_dfs.o pxgstrf_relax_snode.o heap_relax_snode.o pxgstrf_synch.o pxgstrf_finalize.o dlamch.o
ranlib ../lib/libsuperlu_mt_xe6.a
ar cr ../lib/libsuperlu_mt_xe6.a scomplex.o creadhb.o creadrb.o cmatgen.o scsum1.o icmax1.o pcgssv.o pcgssvx.o cgstrs.o cgsrfs.o cgscon.o clacon.o clangs.o cgsequ.o claqgs.o cpivotgrowth.o pcmemory.o pcutil.o cmyblas2.o pcgstrf.o pcgstrf_init.o pcgstrf_thread.o pcgstrf_thread_init.o pcgstrf_thread_finalize.o pcgstrf_factor_snode.o pcgstrf_snode_dfs.o pcgstrf_snode_bmod.o pcgstrf_panel_dfs.o pcgstrf_panel_bmod.o pcgstrf_copy_to_ucol.o pcgstrf_pivotL.o pcgstrf_column_dfs.o pcgstrf_column_bmod.o pcgstrf_bmod1D.o pcgstrf_bmod2D.o pcgstrf_bmod1D_mv2.o pcgstrf_bmod2D_mv2.o csp_blas2.o csp_blas3.o superlu_timer.o dclock.o sp_ienv.o lsame.o xerbla.o util.o pmemory.o qrnzcnt.o cholnzcnt.o await.o get_perm_c.o mmd.o colamd.o sp_coletree.o pxgstrf_scheduler.o sp_colorder.o pxgstrf_mark_busy_descends.o pxgstrf_pruneL.o pxgstrf_super_bnd_dfs.o pxgstrf_relax_snode.o heap_relax_snode.o pxgstrf_synch.o pxgstrf_finalize.o slamch.o
ranlib ../lib/libsuperlu_mt_xe6.a
ar cr ../lib/libsuperlu_mt_xe6.a dcomplex.o zreadhb.o zreadrb.o zmatgen.o dzsum1.o izmax1.o pzgssv.o pzgssvx.o zgstrs.o zgsrfs.o zgscon.o zlacon.o zlangs.o zgsequ.o zlaqgs.o zpivotgrowth.o pzmemory.o pzutil.o zmyblas2.o pzgstrf.o pzgstrf_init.o pzgstrf_thread.o pzgstrf_thread_init.o pzgstrf_thread_finalize.o pzgstrf_factor_snode.o pzgstrf_snode_dfs.o pzgstrf_snode_bmod.o pzgstrf_panel_dfs.o pzgstrf_panel_bmod.o pzgstrf_copy_to_ucol.o pzgstrf_pivotL.o pzgstrf_column_dfs.o pzgstrf_column_bmod.o pzgstrf_bmod1D.o pzgstrf_bmod2D.o pzgstrf_bmod1D_mv2.o pzgstrf_bmod2D_mv2.o zsp_blas2.o zsp_blas3.o superlu_timer.o dclock.o sp_ienv.o lsame.o xerbla.o util.o pmemory.o qrnzcnt.o cholnzcnt.o await.o get_perm_c.o mmd.o colamd.o sp_coletree.o pxgstrf_scheduler.o sp_colorder.o pxgstrf_mark_busy_descends.o pxgstrf_pruneL.o pxgstrf_super_bnd_dfs.o pxgstrf_relax_snode.o heap_relax_snode.o pxgstrf_synch.o pxgstrf_finalize.o dlamch.o
ranlib ../lib/libsuperlu_mt_xe6.a
make[1]: Leaving directory '/mnt/c/SUPERLU/SuperLU_MT_3.1/SRC'
( cd TESTING/MATGEN; make )
make[1]: Entering directory '/mnt/c/SUPERLU/SuperLU_MT_3.1/TESTING/MATGEN'
ar cr ../libtmglib.a slatms.o slagge.o slagsy.o slarge.o slaror.o slarot.o slatm2.o slatm3.o slatme.o slatmr.o slatm1.o slaran.o slarnd.o slaruv.o slabad.o slarnv.o \
        slatb4.o slaset.o slartg.o r_lg10.o r_sign.o pow_dd.o lsamen.o
ranlib ../libtmglib.a
ar cr ../libtmglib.a dlatms.o dlagge.o dlagsy.o dlarge.o dlaror.o dlarot.o dlatm2.o dlatm3.o dlatme.o dlatmr.o dlatm1.o dlaran.o dlarnd.o dlaruv.o dlabad.o dlarnv.o \
        dlatb4.o dlaset.o dlartg.o d_lg10.o d_sign.o pow_dd.o lsamen.o
ranlib ../libtmglib.a
ar cr ../libtmglib.a clatms.o clagge.o clagsy.o clarge.o claror.o clarot.o clatm2.o clatm3.o claghe.o clarnd.o cdotc.o slatm1.o slaran.o slarnd.o slaruv.o slabad.o slarnv.o \
        clatb4.o claset.o clartg.o clarnv.o clacgv.o csymv.o r_lg10.o r_sign.o pow_dd.o lsamen.o
ranlib ../libtmglib.a
ar cr ../libtmglib.a zlatms.o zlagge.o zlagsy.o zlarge.o zlaror.o zlarot.o zlatm2.o zlatm3.o zlaghe.o zlarnd.o zdotc.o dlatm1.o dlaran.o dlarnd.o dlaruv.o dlabad.o dlarnv.o \
        zlatb4.o zlaset.o zlartg.o zlarnv.o zlacgv.o zsymv.o d_lg10.o d_sign.o pow_dd.o lsamen.o
ranlib ../libtmglib.a
make[1]: Leaving directory '/mnt/c/SUPERLU/SuperLU_MT_3.1/TESTING/MATGEN'

Revision history for this message
Manfred Hampl (m-hampl) said :
#31

It seems that the example files are not built automatically.

Try

cd EXAMPLE
make all
pslinsol -p4 < big.rua

Revision history for this message
john williams (john1948) said :
#32

Still no luck:

root@DESKTOP-8HR6ET2:/mnt/c/SUPERLU/SuperLU_MT_3.1/EXAMPLE# make all
cc pslinsol.o \
../lib/libsuperlu_mt_xe6.a -lm -lpthread -o pslinsol
../lib/libsuperlu_mt_xe6.a(sgstrs.o): In function `sgstrs':
/mnt/c/SUPERLU/SuperLU_MT_3.1/SRC/sgstrs.c:170: undefined reference to `strsm_'
/mnt/c/SUPERLU/SuperLU_MT_3.1/SRC/sgstrs.c:173: undefined reference to `sgemm_'
/mnt/c/SUPERLU/SuperLU_MT_3.1/SRC/sgstrs.c:243: undefined reference to `strsm_'
../lib/libsuperlu_mt_xe6.a(psgstrf_snode_bmod.o): In function `psgstrf_snode_bmod':
/mnt/c/SUPERLU/SuperLU_MT_3.1/SRC/psgstrf_snode_bmod.c:101: undefined reference to `strsv_'
/mnt/c/SUPERLU/SuperLU_MT_3.1/SRC/psgstrf_snode_bmod.c:103: undefined reference to `sgemv_'
../lib/libsuperlu_mt_xe6.a(psgstrf_column_bmod.o): In function `psgstrf_column_bmod':
/mnt/c/SUPERLU/SuperLU_MT_3.1/SRC/psgstrf_column_bmod.c:218: undefined reference to `strsv_'
/mnt/c/SUPERLU/SuperLU_MT_3.1/SRC/psgstrf_column_bmod.c:230: undefined reference to `sgemv_'
/mnt/c/SUPERLU/SuperLU_MT_3.1/SRC/psgstrf_column_bmod.c:341: undefined reference to `strsv_'
/mnt/c/SUPERLU/SuperLU_MT_3.1/SRC/psgstrf_column_bmod.c:343: undefined reference to `sgemv_'
../lib/libsuperlu_mt_xe6.a(psgstrf_bmod1D.o): In function `psgstrf_bmod1D':
/mnt/c/SUPERLU/SuperLU_MT_3.1/SRC/psgstrf_bmod1D.c:230: undefined reference to `strsv_'
/mnt/c/SUPERLU/SuperLU_MT_3.1/SRC/psgstrf_bmod1D.c:243: undefined reference to `sgemv_'
../lib/libsuperlu_mt_xe6.a(psgstrf_bmod2D.o): In function `psgstrf_bmod2D':
/mnt/c/SUPERLU/SuperLU_MT_3.1/SRC/psgstrf_bmod2D.c:228: undefined reference to `strsv_'
/mnt/c/SUPERLU/SuperLU_MT_3.1/SRC/psgstrf_bmod2D.c:287: undefined reference to `sgemv_'
../lib/libsuperlu_mt_xe6.a(ssp_blas2.o): In function `sp_strsv':
/mnt/c/SUPERLU/SuperLU_MT_3.1/SRC/ssp_blas2.c:163: undefined reference to `strsv_'
/mnt/c/SUPERLU/SuperLU_MT_3.1/SRC/ssp_blas2.c:166: undefined reference to `sgemv_'
/mnt/c/SUPERLU/SuperLU_MT_3.1/SRC/ssp_blas2.c:215: undefined reference to `strsv_'
/mnt/c/SUPERLU/SuperLU_MT_3.1/SRC/ssp_blas2.c:267: undefined reference to `strsv_'
/mnt/c/SUPERLU/SuperLU_MT_3.1/SRC/ssp_blas2.c:302: undefined reference to `strsv_'
collect2: error: ld returned 1 exit status
Makefile:74: recipe for target 'pslinsol' failed
make: *** [pslinsol] Error 1
root@DESKTOP-8HR6ET2:/mnt/c/SUPERLU/SuperLU_MT_3.1/EXAMPLE# pslinsol -p4 < big.rua
pslinsol: command not found

Revision history for this message
Manfred Hampl (m-hampl) said :
#33

It seems that you have not correctly set up your environment.

Did you follow all steps in the README file, especially those relates to BLAS?

e.g. those:
    1) In make.inc, undefine (comment out) BLASDEF, and define:
          BLASLIB = ../lib/libblas$(PLAT).a

    2) Type:
          make blaslib
       to make the BLAS library from the routines in the CBLAS/ subdirectory.

Maybe it is easier to use SuperLU instead of SuperLU_MT.

Revision history for this message
john williams (john1948) said :
#34

The BLAS part of make.inc is now:
BLASDEF = -DUSE_VENDOR_BLAS
BLASLIB = ../lib/libblas$(PLAT).a
#BLASLIB =
MATHLIB = -lm
MPLIB = -lpthread

Originally there was nothing in the BLASLIB line.

root@DESKTOP-8HR6ET2:/mnt/c/SUPERLU/SuperLU_MT_3.1/CBLAS# make blaslib
make: *** No rule to make target 'blaslib'. Stop.

But just make gives:

root@DESKTOP-8HR6ET2:/mnt/c/SUPERLU/SuperLU_MT_3.1/CBLAS# make
ar cr ../lib/libblas_xe6.a isamax.o sasum.o saxpy.o scopy.o sdot.o snrm2.o srot.o sscal.o \
        sgemv.o ssymv.o strsv.o sger.o ssyr2.o
ranlib ../lib/libblas_xe6.a
ar cr ../lib/libblas_xe6.a idamax.o dasum.o daxpy.o dcopy.o ddot.o dnrm2.o drot.o dscal.o \
        dgemv.o dsymv.o dtrsv.o dger.o dsyr2.o
ranlib ../lib/libblas_xe6.a
ar cr ../lib/libblas_xe6.a icamax.o scasum.o caxpy.o ccopy.o scnrm2.o cscal.o \
        cgemv.o chemv.o ctrsv.o cgerc.o cher2.o
ranlib ../lib/libblas_xe6.a
ar cr ../lib/libblas_xe6.a izamax.o dzasum.o zaxpy.o zcopy.o dznrm2.o zscal.o dcabs1.o \
        zgemv.o zhemv.o ztrsv.o zgerc.o zher2.o
ranlib ../lib/libblas_xe6.a

After make in the top directory I still get:

root@DESKTOP-8HR6ET2:/mnt/c/SUPERLU/SuperLU_MT_3.1# cd EXAMPLE
root@DESKTOP-8HR6ET2:/mnt/c/SUPERLU/SuperLU_MT_3.1/EXAMPLE# pslinsol -p4 < big.rua
pslinsol: command not found

Revision history for this message
Manfred Hampl (m-hampl) said :
#35

Now you have to re-try building the pslinsol executable!

Revision history for this message
john williams (john1948) said :
#36

Please see:

root@DESKTOP-8HR6ET2:/mnt/c/SUPERLU/SuperLU_MT_3.1/EXAMPLE# make pslinsol
cc pslinsol.o \
../lib/libsuperlu_mt_xe6.a ../lib/libblas_xe6.a -lm -lpthread -o pslinsol
../lib/libsuperlu_mt_xe6.a(sgstrs.o): In function `sgstrs':
/mnt/c/SUPERLU/SuperLU_MT_3.1/SRC/sgstrs.c:170: undefined reference to `strsm_'
/mnt/c/SUPERLU/SuperLU_MT_3.1/SRC/sgstrs.c:173: undefined reference to `sgemm_'
/mnt/c/SUPERLU/SuperLU_MT_3.1/SRC/sgstrs.c:243: undefined reference to `strsm_'
collect2: error: ld returned 1 exit status
Makefile:74: recipe for target 'pslinsol' failed
make: *** [pslinsol] Error 1

Revision history for this message
Manfred Hampl (m-hampl) said :
#37

Im am sorry, but I cannot help further. This is software that has to do nothing with Ubuntu. If you need help using it, then you have to look for support somewhere else.

Just some ideas:
Carefully follow the README file(s)
The software version that you are currently working on is for a CRAY XE6 supercomputer. I doubt that you have such hardware.
Maybe you should try the "normal" SuperLU package instead of SuperLU_MT.
Or you can delete the foreign package and go back installing the Ubuntu-provided version.

Revision history for this message
john williams (john1948) said :
#38

Hi Manfred,

I am using: PLAT = _xe6 - is this correct for a Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz 3.18 machine?

Thanks,
John

Revision history for this message
Manfred Hampl (m-hampl) said :
#39

I already told before: As far as I known xe6 is for Cray XE6 supercomputer.
I do not know what the consequences are of using that on different hardware and operating system.
Please ask elsewhere; this is not an Ubuntu problem.

Revision history for this message
john williams (john1948) said :
#40

Hi Manfred,

I am sorry to have to bother you again bjut I am getting nowhere with this software. I followed your advice and downloaded SUPERLU but there appears to be no lib directory! I copied across the SUPER_MT lib directory but this does not contain the correct files.

See:

jjrw@DESKTOP-RD08H7P:/mnt/c/SUPERLU/superlu-5.2.2$ make blaslib
( cd CBLAS; make )
make[1]: Entering directory '/mnt/c/SUPERLU/superlu-5.2.2/CBLAS'
ar cr ../lib/blas_linux.a isamax.o sasum.o saxpy.o scopy.o sdot.o snrm2.o srot.o sscal.o sswap.o sgemv.o ssymv.o strsv.o sger.o ssyr2.o
ar: ../lib/blas_linux.a: No such file or directory
Makefile:67: recipe for target 'single' failed
make[1]: *** [single] Error 1
make[1]: Leaving directory '/mnt/c/SUPERLU/superlu-5.2.2/CBLAS'
Makefile:33: recipe for target 'blaslib' failed
make: *** [blaslib] Error 2

Best regards,
John

-----Original Message-----
From: <email address hidden> <email address hidden> On Behalf Of john williams
Sent: 01 June 2021 17:31
To: JJR Williams <email address hidden>
Subject: Re: [Question #697286]: SuperLU installation

Your question #697286 on superlu in Ubuntu changed:
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fanswers.launchpad.net%2Fubuntu%2F%2Bsource%2Fsuperlu%2F%2Bquestion%2F697286&amp;data=04%7C01%7C%7Ca2a2396563a44f57c17208d9251aa3af%7C569df091b01340e386eebd9cb9e25814%7C0%7C1%7C637581618637197069%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=Zw%2F7YswEEboBfluB1MfL8iENRDZVfygRGIhm%2Fe%2FvKQw%3D&amp;reserved=0

    Status: Answered => Open

You are still having a problem:
Hi Manfred,

I am using: PLAT = _xe6 - is this correct for a Intel(R) Core(TM)
i7-8700 CPU @ 3.20GHz 3.18 machine?

Thanks,
John

--
You received this question notification because you asked the question.

Revision history for this message
Manfred Hampl (m-hampl) said :
#41

Did you carefully read and follow the instructions that are provided with the software?

What you are trying has nothing to do with Ubuntu, so we cannot help.

This is the right area to ask only if you install the Ubuntu-provided superlu package.

Revision history for this message
john williams (john1948) said :
#42

I am pretty sure I have fcarefully ollowed the instructions and there is no lib directory.

Please suggest a site for me to download the UBUNTU superlu.

Thanks,
John

-----Original Message-----
From: <email address hidden> <email address hidden> On Behalf Of Manfred Hampl
Sent: 05 June 2021 20:01
To: JJR Williams <email address hidden>
Subject: Re: [Question #697286]: SuperLU installation

Your question #697286 on superlu in Ubuntu changed:
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fanswers.launchpad.net%2Fubuntu%2F%2Bsource%2Fsuperlu%2F%2Bquestion%2F697286&amp;data=04%7C01%7C%7Cd2be68cae4f44eb9c63f08d928544408%7C569df091b01340e386eebd9cb9e25814%7C0%7C0%7C637585164651642191%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=J78zlNHeEYnoe3Fpd9pJiGdEINJdl7PcnSQtWZtiZJw%3D&amp;reserved=0

    Status: Open => Answered

Manfred Hampl proposed the following answer:
Did you carefully read and follow the instructions that are provided with the software?

What you are trying has nothing to do with Ubuntu, so we cannot help.

This is the right area to ask only if you install the Ubuntu-provided superlu package.

--
If this answers your question, please go to the following page to let us know that it is solved:
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fanswers.launchpad.net%2Fubuntu%2F%2Bsource%2Fsuperlu%2F%2Bquestion%2F697286%2F%2Bconfirm%3Fanswer_id%3D40&amp;data=04%7C01%7C%7Cd2be68cae4f44eb9c63f08d928544408%7C569df091b01340e386eebd9cb9e25814%7C0%7C0%7C637585164651652150%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=WBRrHO5Pf%2FwJnFQEOmU9aiz1XSuK87vnqKLQfxKDZmc%3D&amp;reserved=0

If you still need help, you can reply to this email or go to the following page to enter your feedback:
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fanswers.launchpad.net%2Fubuntu%2F%2Bsource%2Fsuperlu%2F%2Bquestion%2F697286&amp;data=04%7C01%7C%7Cd2be68cae4f44eb9c63f08d928544408%7C569df091b01340e386eebd9cb9e25814%7C0%7C0%7C637585164651652150%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=pu6N%2FIfRcj%2BOJV5C5bRY%2BNj%2BiS3AkZk1HQG%2Bt2JpcU8%3D&amp;reserved=0

You received this question notification because you asked the question.

Revision history for this message
Manfred Hampl (m-hampl) said :
#43

There is no "site to download the UBUNTU superlu".

You install the Ubuntu-provided packages with the Ubuntu package management system, e.g. with the commands given in the very first comment.

You should make sure that you do not mix the same software from different sources, so I recommend that you remove everything what you have downloaded from nersc.gov before you install the Ubuntu-provided packages.

Revision history for this message
john williams (john1948) said :
#44

Hi Manfred,

I wonder if you would please doing me a great favour and download the basic SUPERLU from: https://portal.nersc.gov/project/sparse/superlu/

And check that there is no lib directory which is required if I use make.linux? (I am using an intel chip).

Many thanks,
John

-----Original Message-----
From: <email address hidden> <email address hidden> On Behalf Of Manfred Hampl
Sent: 05 June 2021 22:11
To: JJR Williams <email address hidden>
Subject: Re: [Question #697286]: SuperLU installation

Your question #697286 on superlu in Ubuntu changed:
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fanswers.launchpad.net%2Fubuntu%2F%2Bsource%2Fsuperlu%2F%2Bquestion%2F697286&amp;data=04%7C01%7C%7C45f03b842d234e7c848808d928666c5a%7C569df091b01340e386eebd9cb9e25814%7C0%7C0%7C637585242633894354%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=KS0L54seavGxrDpi8YXW%2BUt45s3hLV3T5w4MKuTR9AQ%3D&amp;reserved=0

    Status: Open => Answered

Manfred Hampl proposed the following answer:
There is no "site to download the UBUNTU superlu".

You install the Ubuntu-provided packages with the Ubuntu package management system, e.g. with the commands given in the very first comment.

You should make sure that you do not mix the same software from different sources, so I recommend that you remove everything what you have downloaded from nersc.gov before you install the Ubuntu-provided packages.

--
If this answers your question, please go to the following page to let us know that it is solved:
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fanswers.launchpad.net%2Fubuntu%2F%2Bsource%2Fsuperlu%2F%2Bquestion%2F697286%2F%2Bconfirm%3Fanswer_id%3D42&amp;data=04%7C01%7C%7C45f03b842d234e7c848808d928666c5a%7C569df091b01340e386eebd9cb9e25814%7C0%7C0%7C637585242633894354%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=zFvIcgnQDbG2uLC9Jdl4m5xACBH8ATFCrLGYcGpFPbc%3D&amp;reserved=0

If you still need help, you can reply to this email or go to the following page to enter your feedback:
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fanswers.launchpad.net%2Fubuntu%2F%2Bsource%2Fsuperlu%2F%2Bquestion%2F697286&amp;data=04%7C01%7C%7C45f03b842d234e7c848808d928666c5a%7C569df091b01340e386eebd9cb9e25814%7C0%7C0%7C637585242633894354%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=KS0L54seavGxrDpi8YXW%2BUt45s3hLV3T5w4MKuTR9AQ%3D&amp;reserved=0

You received this question notification because you asked the question.

Revision history for this message
Manfred Hampl (m-hampl) said :
#45

I am sorry, but I am not interested in installing foreign software if there is an equivalent package in the Ubuntu repositories.
This is not what Ubuntu support is thought for.

Revision history for this message
john williams (john1948) said :
#46

Ok thanks Manfred. I didn't realise it was foreign; I thought it was 'official' software as you looked at the README file.

When I tried to download the documentation you suggestion for the Ububtu Superlu the different choices became bewildering.

Regards,
John

Revision history for this message
Launchpad Janitor (janitor) said :
#47

This question was expired because it remained in the 'Open' state without activity for the last 15 days.