hominoids / sgminer-arm

ARM Mali OpenCL GPU Miner
GNU General Public License v3.0
30 stars 19 forks source link

Problems discovering my Graphics Card.. #5

Open tuxd3v opened 5 years ago

tuxd3v commented 5 years ago

Hello, First of all thanks for your work :)

I tried to compile your project on aarch64. I downloaded the ARM Compute Library( the compiled version.. )

then I linked against the libOpencl.so in 'linux-arm64-v8a-neon-cl' This is my configure line:

CFLAGS="-Os -Wall -march=armv8-a+simd+crypto+crc -mtune=cortex-a53 -std=gnu99" CPPFLAGS="-Os -Wall -march=armv8-a+simd+crypto+crc -mtune=cortex-a53 -std=gnu99" LDFLAGS="-L/opt/ARMcompute/lib/linux-arm64-v8a-neon-cl" ./configure --disable-adl --disable-adl-checks

The End Result:

------------------------------------------------------------------------
sgminer 5.5.6-ARM-RC1
------------------------------------------------------------------------

Configuration Options Summary:

  Use git version......: yes
  libcurl(GBT+getwork).: Enabled: -lcurl
  curses.TUI...........: FOUND: -lncurses
  OpenCL...............: FOUND. GPU mining support enabled
  ADL..................: Detection overrided. GPU monitoring support DISABLED

Compilation............: make (or gmake)
  CPPFLAGS.............: -Os -Wall -march=armv8-a+simd+crypto+crc -mtune=cortex-a53 -std=gnu99
  CFLAGS...............: -Os -Wall -march=armv8-a+simd+crypto+crc -mtune=cortex-a53 -std=gnu99
  LDFLAGS..............: -L/opt/ARMcompute/lib/linux-arm64-v8a-neon-cl -lpthread
  LDADD................: -ldl -lcurl submodules/jansson/src/.libs/libjansson.a -lpthread -lOpenCL    -lm -lrt

Installation...........: make install (as root if needed, with 'su' or 'sudo')
  prefix...............: /usr/local

I got some "fatal messages" when compiling, I don't know if they are important, but in the end of compilation: but 'echo $?' returns zero..

This is the relevant part of it:

/opt/sgminer-arm# make
fatal: No names found, cannot describe anything.
make  all-recursive
make[1]: Entering directory '/opt/sgminer-arm'
fatal: No names found, cannot describe anything.
Making all in lib

( ... )

Making all in ccan

  CC       simd.o
  CC       blake.o
  CC       cubehash.o
  CC       groestl.o
  CC       keccak.o
  CC       shavite.o
  CC       skein.o
  CC       sha2.o
  CC       sha2big.o
  CC       fugue.o
  CC       hamsi.o
  CC       panama.o
  CC       shabal.o
  CC       whirlpool.o
  CC       sha256_Y.o

( ... )

ar: `u' modifier ignored since `D' is the default (see `U')
make[2]: Leaving directory '/opt/sgminer-arm/sph'
make[2]: Entering directory '/opt/sgminer-arm'
fatal: No names found, cannot describe anything.
  CC       sgminer-sgminer.o
In file included from ./logging.h:4:0,
                 from ocl/build_kernel.h:5,
                 from algorithm.h:12,
                 from miner.h:17,
                 from sgminer.c:55:
Lots of Warning because of redefining in several places: 
#define VERSION GIT_VERSION

( ... )

When I check if Graphics card is detected, I got:

/opt/sgminer-arm# ./sgminer -n

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: clGetPlatformIDs from stub libOpenCL.so library called! This library can be used to resolve OpenCL symbols at compile time but must *not* be in your runtime path (You need to use a real OpenCL implementation, this one is empty)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[00:09:42] Error -5: clGetPlatformsIDs failed (no OpenCL SDK installed?)                    
[00:09:42] clDevicesNum returned error, no GPUs usable                    
[00:09:42] 0 GPU devices max detected

I have the PAth of 'libOpenCL.so' in Dynamic Linker config '/etc/ld.so.conf', and cache remake again..

What could be triggering this problems? I have this GPU:

GPU:
    ARM Mali-T720 MP2
    Featuring 2 unified shader cores
    Complies with OpenGL ES 3.0, OpenCL 1.2

I would like to make it work, and also port a algo for it.. :)

Thanks in Advance, Regards