This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug math/20123] [powerpc] Enable libmvec vector math library on POWER VSX


https://sourceware.org/bugzilla/show_bug.cgi?id=20123

--- Comment #2 from Hi-Angel <hi-angel at yandex dot ru> ---
(In reply to Hi-Angel from comment #1)
> (In reply to David Edelsohn from comment #0)
> > Add PPC64 LE Linux support for the libmvec vector math library to exploit
> > the POWER8 VSX SIMD instruction set.
> 
> Hello, I wanted to take a stab at it, but could you please clarify how am I
> supposed to test it? I found "POWER9 Functional Emulator"¹, which comes with
> a README on how to run it, however boot-linux-le-skiboot.tcl which
> supposedly ought to run a VM quits with errors. E.g.:
> 
> 	$ tclsh /opt/ibm/systemsim-p9/run/p9/linux/boot-linux-le-skiboot.tcl
> 	no such variable
> 		(read trace on "env(LIB_DIR)")
> 		invoked from within
> 	"source $env(LIB_DIR)/p9/systemsim.tcl"
> 		(file "/opt/ibm/systemsim-p9/run/p9/linux/boot-linux-le-skiboot.tcl" line
> 77)
> 
> I managed to workaround env-related errors by wrapping into a script, but
> whole tcl-part seems to be broken because scripts lack lots of functions and
> variables. And they're really don't seem to be defined, e.g. it's failing on
> renaming `::help`, but there isn't `proc help` to begin with. I defined
> `help`, but now it's failing on non-existing `config` variable.
> 
> Initially I tried it on Archlinux, but then I installed a Ubuntu VM, and
> tested there, it behaves absolutely the same.
> 
> -----
> 
> Advises on getting an environment for solving the bug is appreciated.
> 
> 1: https://www-304.ibm.com/webapp/set2/sas/f/pwrfs/pwr9/home.html

Ok, I found a "install & use" tab on the linked page, from the pdf turned out
the correct command would be 

        ./opt/ibm/systemsim-p9/run/p9/power9 -f
opt/ibm/systemsim-p9/run/p9/linux/boot-linux-le-skiboot.tcl

It didn't work this way right away though, didn't recognize paths in tcl script
I ought to edit, and after I got fenced with lots of simlinks it required some
IOCTL. I took a risk of running it under root, and it finally got launched.

A wall of startup text after it presented me with a login prompt. Acc. to
README login=root and password=mambo; but the prompt just doesn't react to the
text being typed. It even quits upon pressing ^C. I'm stuck.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]