DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 25th December 2018
dchmelik's Avatar
dchmelik dchmelik is offline
Real Name: David Chmelik
Port Guard
 
Join Date: Oct 2017
Location: USA
Posts: 38
Default GPU/OpenCL stuff (compiling. emulation) (BOINC, miners)

I'm trying to switch from having to use one of three commercialized GNU/Linux distributions that have AMDGPU-PRO, back to *BSD, this time FreeBSD. To do that, I'd need my graphics card to be able to use OpenCL such as for Berkeley Open Infrsastructure for Network Computing (to contribute idle system resources to research/academic science) and some cryptocurrency miners.

Since FreeBSD 12 has OpenCL, probably also for AMD Radeon RX Vega cards, I think BOINC will work but haven't installed a desktop environment (DE) such as KDE to test it, but it shouldn't be something I necessarily need help on. If OpenCL supports the card, BOINC just detects it.

It's not as easy for ethminer (ethereum,) lolminer (bitcoin gold,) or nsgminer (feathercoin,) which I'm pasting some configuration/compile errors below to ask about.

One other thing I'll have to see is if all my monitors are detected in X/KDE or TDE (only first display port is on the pure terminal, not the higher-numbered display ports.)

Maybe the easiest should be ethminer, lolminer, under emulation In GNU/Linux, I got these results from ldd.

Code:
ldd /usr/local/bin/ethminer
linux-vdso.so.1 (0x00007ffd01650000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f5e6d93c000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f5e6d734000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f5e6d515000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f5e6d177000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f5e6cf5f000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f5e6cb6e000)
/lib64/ld-linux-x86-64.so.2 (0x00007f5e6db40000)
Code:
ldd /usr/local/lib/lolminer/lolMiner
linux-vdso.so.1 (0x00007fff521fe000)
libOpenCL.so.1 => /opt/amdgpu-pro/lib/x86_64-linux-gnu/libOpenCL.so.1 (0x00007fd1da65a000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fd1da43b000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fd1da09d000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fd1d9e85000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fd1d9a94000)
/lib64/ld-linux-x86-64.so.2 (0x00007fd1da861000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fd1d988c000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fd1d9688000)
Ethminer needs libc 2.18+ so I copied & linked as below.

Code:
-rwxr-xr-x  1 root  wheel  1924768 Dec 31 07:35 /compat/linux/lib64/libc-2.12.so
-rwxr-xr-x  1 root  wheel  2030544 Dec 31 07:35 /compat/linux/lib64/libc-2.27.so
lrwxr-xr-x  1 root  wheel       12 Dec 31 07:36 /compat/linux/lib64/libc.so.6 -> libc-2.27.so
However ethminer didn't detect libc.

The pool.gold site's lolMiner 0.5 needs libOpenCL.so.1. I installed same version number from ports' OpenCL (clover,) linked into /compat/linux/opt/amdgpu-pro/lib/x86_64-linux-gnu. However, then lolMiner said OpenCL is not detected.

I tried to use autogen.sh from nsgminer from commit fa56d4d2b0ae5e11c79cb85977f31f0272443680 (Here are the last few lines of output, just what seems to be errors: )

Code:
autoreconf-2.69: configure.ac: not using Libtool
configure.ac:201: error: possibly undefined macro: AC_CHECK_LIB
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:204: error: possibly undefined macro: AC_MSG_ERROR
configure.ac:275: error: possibly undefined macro: AC_CHECK_DECL
configure.ac:278: error: possibly undefined macro: AC_PROG_CPP
configure.ac:279: error: possibly undefined macro: AC_MSG_CHECKING
configure.ac:284: error: possibly undefined macro: AC_MSG_RESULT
autoreconf-2.69: /usr/local/bin/autoconf-2.69 failed with exit status: 1
I haven't used an autogen.sh many times and am not sure what went wrong or what those macros are...
__________________
David
homesite mirror (most uptime) / homesite (updated first)

Last edited by dchmelik; 31st December 2018 at 08:37 AM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Funny stuff Carpetsmoker Off-Topic 556 2nd January 2018 02:01 PM
the extra stuff in -current snapshots ocicat OpenBSD General 4 20th June 2012 04:57 PM
BSD partitions and stuff desreguard OpenBSD General 3 30th August 2011 08:00 PM
What Ports Are Needed For BOINC SETI? MetalHead FreeBSD Ports and Packages 5 11th January 2009 08:25 PM
Linux emulation Mr-Biscuit FreeBSD General 2 9th October 2008 09:44 PM


All times are GMT. The time now is 05:08 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick