mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software > Mlucas

Reply
 
Thread Tools
Old 2017-06-19, 08:05   #67
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

2D7716 Posts
Default

OK, gonna try to set up my Odroid in the next couple of days ... first issue is that I think I may need a proper display adapter. I use a 15-pin (standard display pinout) to mini-Display-port adapter on my Intel NUC, but don't see a mini-Display port on the Odroid.

The other adapter I have on hand is 15-pin to what looks like 2 parallel, thin, roughly microSD-width slivers, each with what looks like 8 tiny pin contacts (hard to make out even under magnifying glass), the two 8-pin dealies seprated by ~1-1.5 mm. Again don't see anything like that on the Odroid.

Should I just order a 15-pin to HDMI adapter cable?

Last fiddled with by ewmayer on 2017-06-19 at 08:06
ewmayer is offline   Reply With Quote
Old 2017-06-19, 09:38   #68
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

32·5·107 Posts
Default

Quote:
Originally Posted by ewmayer View Post
OK, gonna try to set up my Odroid in the next couple of days ... first issue is that I think I may need a proper display adapter. I use a 15-pin (standard display pinout) to mini-Display-port adapter on my Intel NUC, but don't see a mini-Display port on the Odroid.

The other adapter I have on hand is 15-pin to what looks like 2 parallel, thin, roughly microSD-width slivers, each with what looks like 8 tiny pin contacts (hard to make out even under magnifying glass), the two 8-pin dealies seprated by ~1-1.5 mm. Again don't see anything like that on the Odroid.

Should I just order a 15-pin to HDMI adapter cable?
My monitor has 2 HDMI inputs (and 1 15-pin VGA), so I ordered the HDMI cable and plugged it to the monitor as a secondary input.
ET_ is offline   Reply With Quote
Old 2017-06-20, 00:30   #69
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

103×113 Posts
Default

Quote:
Originally Posted by ET_ View Post
My monitor has 2 HDMI inputs (and 1 15-pin VGA), so I ordered the HDMI cable and plugged it to the monitor as a secondary input.
I'll probably get a VGA-to-HDMI adapter - that way I can use the existing VGA cable dangling down from the display and simply switch it between the NUC's mini-display adapter dongle and the adapter for the Odroid as needed. (The NUC only very rarely needs to be hooked to the display anymore, pretty much only when I need to restart after a power outage.)

But, do I need a male or female HDMI plug on the adapter? Not having mucked about with HDMI and having only one end of the equation to eyeball - the Odroid C2 HDMI plug - it's not clear to me whether the latter is male or female. (I.e. I've never "sexed an HDMI" before, and have only one exemplar of the species to inspect. :)
ewmayer is offline   Reply With Quote
Old 2017-06-20, 09:02   #70
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Cambridge (GMT/BST)

23·3·5·72 Posts
Default

Quote:
Originally Posted by ewmayer View Post
I'll probably get a VGA-to-HDMI adapter - that way I can use the existing VGA cable dangling down from the display and simply switch it between the NUC's mini-display adapter dongle and the adapter for the Odroid as needed. (The NUC only very rarely needs to be hooked to the display anymore, pretty much only when I need to restart after a power outage.)

But, do I need a male or female HDMI plug on the adapter? Not having mucked about with HDMI and having only one end of the equation to eyeball - the Odroid C2 HDMI plug - it's not clear to me whether the latter is male or female. (I.e. I've never "sexed an HDMI" before, and have only one exemplar of the species to inspect. :)
Generally a socket is female and the side with prongs is male(guess where that came from).
The Odroid will have a female socket. I expect you will use a male to male hdmi cable to connect to the adapter. You will also want a male to male vga cable from the adapter to your screen.
The adapter will need to have both sockets female. You will need to make sure that it is a hdmi to vga adaptor rather than a vga to hdmi adaptor.


As a general rule most cables with the same end on both sides are male.
henryzz is offline   Reply With Quote
Old 2017-06-20, 09:52   #71
ldesnogu
 
ldesnogu's Avatar
 
Jan 2008
France

22616 Posts
Default

Quote:
Originally Posted by ewmayer View Post
I'll probably get a VGA-to-HDMI adapter - that way I can use the existing VGA cable dangling down from the display and simply switch it between the NUC's mini-display adapter dongle and the adapter for the Odroid as needed.
Isn't it an HDMI-to-VGA adapter that you need since your device is outputting through HDMI?

I'm on a coffee diet so sorry if I completely misunderstood, my brain is compromised by lack of caffeine

Last fiddled with by ldesnogu on 2017-06-20 at 09:53
ldesnogu is offline   Reply With Quote
Old 2017-06-20, 21:28   #72
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

1163910 Posts
Default

Quote:
Originally Posted by henryzz View Post
The Odroid will have a female socket. I expect you will use a male to male hdmi cable to connect to the adapter. You will also want a male to male vga cable from the adapter to your screen.
Yeah, looking at my NUC VGA-to-mini-display adapter dongle, VGA side is F (to take the M VGA plug from the monitor VGA-to-VGA cable), device side mini-connector is M. So I figured that F-to-M dongle scheme was standard and went ahead and ordered this $8 special.

Laurent, does that answer your fog-of-decaffeination question?
ewmayer is offline   Reply With Quote
Old 2017-06-21, 05:16   #73
ldesnogu
 
ldesnogu's Avatar
 
Jan 2008
France

2×52×11 Posts
Default

Definitely
ldesnogu is offline   Reply With Quote
Old 2017-06-21, 07:05   #74
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

103×113 Posts
Default

Quote:
Originally Posted by ldesnogu View Post
Definitely
ewmayer is offline   Reply With Quote
Old 2017-06-23, 08:21   #75
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

2D7716 Posts
Default

VGA-to-HDMI adapter dongle arrived today, a day late - slipped MicroSD with preloaded boot image (bought from Hardkernel as an accessory - I have a USB-flash-format MicroSD reader, so now will stick MicroSD in that, turning it into an 8GB thumb drive, 4x larger than any dedicated such I had on hand previosuly) into slot on underside of board, hooked up to monitor, plugged in 5V DC power mini-plug, within a minute was looking at a Ubuntu login prompt. Default user-login was with ID 'odroid' and password the same ... once in I tried to su root but 'root' is not the default pwd for that - do any Odroiders know what it is?

@Luigi: the 'gcc -dM -E - < /dev/null' trick worked fine for me in terms of dumping the predefines (copied to attached bzip2'ed arm.predefs text file) - you sure you typed it properly?

Trial build of a small source file quickly turned up a bug in the imul_macro0.h file, key 64-bit integer-mul macros were getting left undefined ... I traced that to preprocessor/macro stuff I added in the last few years to implement such macros in Nvidia CUDA PTX code. Fixed-up version of that file also attached - ARM Neon probably has decent 64-bit-int hardware-MUL support, but I've yet to dig deeply into the instruction set, and not crucial for the LL-testing stuff, in any event.

With those patches, multithreaded scalar-double (i.e. generic-C) build succeeded, self-tests running now, albeit quite slow, between the generic-C-ness and just 1-threaded for first set of such self-tests. E.g. 230 ms/iter @1024K, 25-30x slower than a single AMD Ryzen core running AVX2 code. But if I can get a 2.5-3x speedup from vector-128-bit-SIMD assembler on the Neon, 1/10th the per-core performance of Ryzen at only $10/core (sans any volume discounts) would be not too bad.

Will post self-test timings @1,2,4-threads tomorrow.
Attached Files
File Type: bz2 arm.predefs.bz2 (2.1 KB, 80 views)
File Type: bz2 imul_macro0.h.bz2 (15.2 KB, 84 views)
ewmayer is offline   Reply With Quote
Old 2017-06-23, 10:31   #76
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

3,739 Posts
Default

Quote:
Originally Posted by ewmayer View Post
...Ubuntu login prompt. Default user-login was with ID 'odroid' and password the same ... once in I tried to su root but 'root' is not the default pwd for that - do any Odroiders know what it is?
Prefix each root command with sudo and enter your user password.

My guess is you can do sudo passwd root if you want to set up a root password.

Or run sudo su to run root commands.

Last fiddled with by paulunderwood on 2017-06-23 at 10:42
paulunderwood is offline   Reply With Quote
Old 2017-06-23, 10:35   #77
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

481510 Posts
Default

Quote:
Originally Posted by ewmayer View Post
@Luigi: the 'gcc -dM -E - < /dev/null' trick worked fine for me in terms of dumping the predefines (copied to attached bzip2'ed arm.predefs text file) - you sure you typed it properly?
I'm afraid I forgot the '-' after the E

The code compiles and runs happily
I am running the selftest with 1 thread (./Mlucas -s m > selftest.log) and will share the log as I have it (I'm at 1408K right now). Let me know if you still need my prefs.arm file as well.

The [M|m]lucas.cfg file is not written. The code detects its lack, but when it tries to write (r+) it does not succeed.

To do a selftest with more threads, should I try

Code:
./Mlucas -s m -nthread [2|4]
or

Code:
./Mlucas -s m -cpu 0:3
?
ET_ is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Economic prospects for solar photovoltaic power cheesehead Science & Technology 137 2018-06-26 15:46
Which SIMD flag to use for Raspberry Pi BrainStone Mlucas 14 2017-11-19 00:59
compiler/assembler optimizations possible? ixfd64 Software 7 2011-02-25 20:05
Running 32-bit builds on a Win7 system ewmayer Programming 34 2010-10-18 22:36
SIMD string->int fivemack Software 7 2009-03-23 18:15

All times are UTC. The time now is 05:58.


Sat Jul 17 05:58:28 UTC 2021 up 50 days, 3:45, 1 user, load averages: 1.53, 1.50, 1.64

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.