![]() |
|
|
#23 | ||
|
∂2ω=0
Sep 2002
República de California
103×113 Posts |
Quote:
Quote:
|
||
|
|
|
|
|
#24 |
|
Dec 2014
37 Posts |
I managed to set up a s390x chroot! So I don't need to rely on QEMU image anymore (They are pretty hard to find and make). I can now build a "fresh" debian rootfs from scratch.
For curious people, this is how it is done (the following commands need root privilege): Code:
# apt-get install binfmt-support qemu qemu-user-static Code:
# dpkg -i debootstrap_1.0.73~bpo8+1_all.deb Code:
qemu-debootstrap --arch=s390x --include=emacs-nox,less,build-essential,autogen --variant=buildd sid debian-s390x You can now chroot into the chroot. This should works for any architecture that is supported by QEMU user mode emulation. In particular, armel (used by your phone) is supported.
|
|
|
|
|
|
#25 |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
36×13 Posts |
I dropped my compilation yesterday, but today I tried some more...
#define COMPILER_TYPE_GCC 1 in ../src/platform.h And Bob's your mother's closest living relative or something like that... |
|
|
|
|
|
#26 |
|
∂2ω=0
Sep 2002
República de California
103·113 Posts |
OK, I got both un-and-multithreaded builds (all manual compile and link) to work, via the following hacks to platform.h:
o Got rid of these undefs at top - these (duh!) make it impossible for use of PLATFORM_DEBUG as intended, no clue WTF I was thinking with these undefs: #undef PLATFORM_DEBUG #undef OS_DEBUG #undef OS_BITS_DEBUG #undef CPU_DEBUG #undef CMPLR_DEBUG o Instead of initially undefing the following 3 things I now init them to 'unknown' (the not-defined CPU_NAME was hosing the util.c compile): #define CPU_TYPE "Unknown CPU type" #define CPU_NAME "Unknown CPU name" #define CPU_SUBTYPE_NAME "Unknown CPU subtype" o Changed #ifndef CPU_TYPE #error platform.h : CPU_TYPE not defined! #endif to a #warning. (OS_TYPE and COMPILER_TYPE are still required to be defined during preprocessing of the platform.h file, though.) o Added a #elif for the case of Unknown hardware platform, but under Linux/GCC. Fiddled version of the header attached. I only did a pair of quick spot-checks of the 2 binaries @FFT length 128K via './Mlucas -fftlen 128 -iters 100' in each of my 2 build dirs (one for unthreaded, one with pthreading). All the normal Linux thread-affinity stuff seems to be working, though no clue how much || scaling one can expect in these puny guest-accounts. (My virtual setup shows just 2 cores.) |
|
|
|
|
|
#27 |
|
Dec 2014
37 Posts |
Hi Ernst,
I have added 2 new CPU_TYPE CPU_IS_S390 and CPU_IS_S390X to platform.h, does it passes the spot-check and self-test on your VM? The platform.h I use is the old one on my repo, not the one you have just posted . I will rebase my change on the latest platform.h if it works. By the way, could you post the latest version of get_fft_radices.c on your dev branch? I think I run into the duplicate case problem reported by Batalov when building with singlethread. Thanks people! |
|
|
|
|
|
#28 |
|
∂2ω=0
Sep 2002
República de California
103·113 Posts |
Hi, Alex - I will diff your platform.h and try it on the Cloud when I'm home later today and have a secure connection.
Being paranoid I manage my dev-branch code privately, so here is the current version of the file you asked for - should be a drop-in replacement (md5 of the *gz = db5d2504d58897229d0366f4749b4131): Last fiddled with by ewmayer on 2016-02-08 at 04:09 |
|
|
|
|
|
#29 |
|
∂2ω=0
Sep 2002
República de California
103·113 Posts |
Also, do we have any easy way of determining what underlying compute hardware is being used, or is the whole point of the 'generic' cloud setup to obfuscate that?
My gcc predefines-dump shows no obvious clues to the CPU type. |
|
|
|
|
|
#30 | |
|
∂2ω=0
Sep 2002
República de California
103·113 Posts |
Quote:
Code:
../platform.h:1222:10: warning: 'CPU_NAME' macro redefined
#define CPU_NAME "x86_64"
^
../platform.h:130:9: note: previous definition is here
#define CPU_NAME "Unknown CPU name"
But note I fubared my key-creation on the cloud, so to save time was using Serge's already-setup image with his unzip of the 14.1 packaged code. He has since blown his stuff away. If your instance is still up, could you try auto-build with the merged platform.h file attached below? Thanks, and happy lunar new year! I guess the celebrations have already started in Asia. (Or will within the next few hours.) |
|
|
|
|
|
|
#31 |
|
Aug 2010
Republic of Belarus
B216 Posts |
After i replaced platform.h:
Code:
[linux1@lorenzoibm mlucas-14.1]$ ./mlucas
Mlucas 14.1
http://hogranch.com/mayer/README.html
INFO: testing qfloat routines...
CPU Family = S390x, OS = Linux, 64-bit Version, compiled with Gnu C [or other compatible], Version 4.8.5 20150623 (Red Hat 4.8.5-4).
INFO: Using inline-macro form of MUL_LOHI64.
INFO: MLUCAS_PATH is set to ""
INFO: using 53-bit-significand form of floating-double rounding constant for scalar-mode DNINT emulation.
INFO: testing IMUL routines...
INFO: System has 2 available processor cores.
INFO: testing FFT radix tables...
looking for number of threads to use in nthreads.ini file...
Using NTHREADS = #CPUs = 2.
looking for worktodo.ini file...
worktodo.ini file found...checking next exponent in range...
ERROR: at line 245 of file ./src/get_preferred_fft_radix.c
Assertion failed: CONFIGFILE = mlucas.cfg: open failed!
|
|
|
|
|
|
#32 |
|
Aug 2010
Republic of Belarus
101100102 Posts |
Ohhh.Sorry. It's working!!! Amazing!!!
P.S. Forgot about perfomance tunes (mlucas -s m). |
|
|
|
|
|
#33 |
|
Banned
"Luigi"
Aug 2002
Team Italia
32·5·107 Posts |
|
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mlucas and mprime on the same box | daxmick | Software | 5 | 2018-01-05 09:48 |
| Mlucas on ubuntu | Damian | Mlucas | 17 | 2017-11-13 18:12 |
| Mlucas version 17 | ewmayer | Mlucas | 3 | 2017-06-17 11:18 |
| Mlucas on Sparc - | Unregistered | Mlucas | 0 | 2009-10-27 20:35 |
| mlucas on sun | delta_t | Mlucas | 14 | 2007-10-04 05:45 |