Pages:
Author

Topic: An (even more) optimized version of cpuminer (pooler's cpuminer, CPU-only) - page 13. (Read 1958260 times)

newbie
Activity: 35
Merit: 0
appreciate your work. Is there a way for a noob to compile scrypt-jane support into your latest optimized cpuminer? Thanks.

cpuminer-opt (see sig) supports scrypt-jane and many other algos.


Thank you. Will check into it.
newbie
Activity: 35
Merit: 0
appreciate your work. Is there a way for a noob to compile scrypt-jane support into your latest optimized cpuminer? Thanks.

Sorry, I don't think so.

K, thanks. I see someone else posted with one that may work.
hero member
Activity: 838
Merit: 507
Version 2.4.5

This is a bugfix release to address a memory leak affecting long polling.

The source code is, as always, available at GitHub. Source tarball and binaries are available at Sourceforge.
newbie
Activity: 20
Merit: 0
memleak still is present - 2MB per getblocktemplate request.

I must have missed this one because it only happens when long polling is enabled. Anyway, I've just pushed a fix to the git repo. Thank you again!

Could you re release binaries for download? Thanks.
hero member
Activity: 838
Merit: 507
Hello! I'm trying to build 64 bit binary on AIX 7.1, but configure fails with an error. Any suggestions?
config.log:
Code:
configure:3456: checking whether the C compiler works
configure:3478: gcc -O3   conftest.c  >&5
Assembler:
/tmp//cci5yi3I.s: line 12: Only .llong should be used for relocatable expressions.
configure:3482: $? = 1
configure:3520: result: no
This seems relevant: http://www.hpc.cineca.it/content/i-cannot-use-gcc-compiler-even-very-simple-programs
Don't think so, I'm using OBJECT_MODE=64.
So you've tried adding -maix64 to CFLAGS?

It seems there is an incorrect gcc option in config script:
Code:
configure:3425: gcc -V >&5
gcc: error: unrecognized command line option '-V'
I believe that is normal.
newbie
Activity: 2
Merit: 0
Hello! I'm trying to build 64 bit binary on AIX 7.1, but configure fails with an error. Any suggestions?
config.log:
Code:
configure:3456: checking whether the C compiler works
configure:3478: gcc -O3   conftest.c  >&5
Assembler:
/tmp//cci5yi3I.s: line 12: Only .llong should be used for relocatable expressions.
configure:3482: $? = 1
configure:3520: result: no

This seems relevant: http://www.hpc.cineca.it/content/i-cannot-use-gcc-compiler-even-very-simple-programs
Don't think so, I'm using OBJECT_MODE=64. It seems there is an incorrect gcc option in config script:
Code:
configure:3425: gcc -V >&5
gcc: error: unrecognized command line option '-V'
hero member
Activity: 838
Merit: 507
Hello! I'm trying to build 64 bit binary on AIX 7.1, but configure fails with an error. Any suggestions?
config.log:
Code:
configure:3456: checking whether the C compiler works
configure:3478: gcc -O3   conftest.c  >&5
Assembler:
/tmp//cci5yi3I.s: line 12: Only .llong should be used for relocatable expressions.
configure:3482: $? = 1
configure:3520: result: no

This seems relevant: http://www.hpc.cineca.it/content/i-cannot-use-gcc-compiler-even-very-simple-programs
newbie
Activity: 2
Merit: 0
Hello! I'm trying to build 64 bit binary on AIX 7.1, but configure fails with an error. Any suggestions?
config.log:
Code:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by cpuminer configure 2.4.4, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure CFLAGS=-O3

## --------- ##
## Platform. ##
## --------- ##

hostname = srvcrp6
uname -m = 00CC01114C00
uname -r = 1
uname -s = AIX
uname -v = 7

/usr/bin/uname -p = powerpc
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = 7.1.0.0
/bin/universe          = unknown

PATH: /usr/bin
PATH: /etc
PATH: /usr/sbin
PATH: /usr/ucb
PATH: /usr/bin/X11
PATH: /sbin
PATH: /usr/java/jre/bin
PATH: /usr/java/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2336: checking build system type
configure:2350: result: powerpc-ibm-aix7.1.0.0
configure:2370: checking host system type
configure:2383: result: powerpc-ibm-aix7.1.0.0
configure:2403: checking target system type
configure:2416: result: powerpc-ibm-aix7.1.0.0
configure:2460: checking for a BSD-compatible install
configure:2528: result: ./install-sh -c
configure:2539: checking whether build environment is sane
configure:2594: result: yes
configure:2745: checking for a thread-safe mkdir -p
configure:2784: result: ./install-sh -c -d
configure:2791: checking for gawk
configure:2807: found /usr/bin/gawk
configure:2818: result: gawk
configure:2829: checking whether make sets $(MAKE)
configure:2851: result: yes
configure:2880: checking whether make supports nested variables
configure:2897: result: yes
configure:3026: checking whether to enable maintainer-specific portions of Makefiles
configure:3035: result: no
configure:3061: checking for style of include used by make
configure:3089: result: GNU
configure:3160: checking for gcc
configure:3176: found /usr/bin/gcc
configure:3187: result: gcc
configure:3416: checking for C compiler version
configure:3425: gcc --version >&5
gcc (GCC) 4.8.3
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3436: $? = 0
configure:3425: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/freeware/libexec/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/lto-wrapper
Target: powerpc-ibm-aix7.1.0.0
Configured with: ../gcc-4.8.3/configure --with-as=/usr/bin/as --with-ld=/usr/bin/ld --enable-languages=c,c++,fortran --prefix=/opt/freeware --mandir=/opt/freeware/man --infodir=/opt/freeware/info --enable-version-specific-runtime-libs --disable-nls --enable-decimal-floa
t=dpd --host=powerpc-ibm-aix7.1.0.0
Thread model: aix
gcc version 4.8.3 (GCC)
configure:3436: $? = 0
configure:3425: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3436: $? = 1
configure:3425: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:3436: $? = 1
configure:3456: checking whether the C compiler works
configure:3478: gcc -O3   conftest.c  >&5
Assembler:
/tmp//cci5yi3I.s: line 12: Only .llong should be used for relocatable expressions.
configure:3482: $? = 1
configure:3520: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "cpuminer"
| #define PACKAGE_TARNAME "cpuminer"
| #define PACKAGE_VERSION "2.4.4"
| #define PACKAGE_STRING "cpuminer 2.4.4"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "cpuminer"
| #define VERSION "2.4.4"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3525: error: in `/usr/cpuminer/cpuminer-2.4.4':
configure:3527: error: C compiler cannot create executables
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=powerpc-ibm-aix7.1.0.0
ac_cv_env_CCASFLAGS_set=''
ac_cv_env_CCASFLAGS_value=''
ac_cv_env_CCAS_set=''
ac_cv_env_CCAS_value=''
ac_cv_env_CC_set=''
ac_cv_env_CC_value=''
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=-O3
ac_cv_env_CPPFLAGS_set=''
ac_cv_env_CPPFLAGS_value=''
ac_cv_env_CPP_set=''
ac_cv_env_CPP_value=''
ac_cv_env_LDFLAGS_set=''
ac_cv_env_LDFLAGS_value=''
ac_cv_env_LIBS_set=''
ac_cv_env_LIBS_value=''
ac_cv_env_build_alias_set=''
ac_cv_env_build_alias_value=''
ac_cv_env_host_alias_set=''
ac_cv_env_host_alias_value=''
ac_cv_env_target_alias_set=''
ac_cv_env_target_alias_value=''
ac_cv_host=powerpc-ibm-aix7.1.0.0
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes
ac_cv_target=powerpc-ibm-aix7.1.0.0
am_cv_make_support_nested_variables=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /usr/cpuminer/cpuminer-2.4.4/missing aclocal-1.14'
ALLOCA=''
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
ARCH_ARM_FALSE=''
ARCH_ARM_TRUE=''
ARCH_PPC_FALSE=''
ARCH_PPC_TRUE=''
ARCH_x86_64_FALSE=''
ARCH_x86_64_TRUE=''
ARCH_x86_FALSE=''
ARCH_x86_TRUE=''
AUTOCONF='${SHELL} /usr/cpuminer/cpuminer-2.4.4/missing autoconf'
AUTOHEADER='${SHELL} /usr/cpuminer/cpuminer-2.4.4/missing autoheader'
AUTOMAKE='${SHELL} /usr/cpuminer/cpuminer-2.4.4/missing automake-1.14'
AWK='gawk'
CC='gcc'
CCAS=''
CCASDEPMODE=''
CCASFLAGS=''
CCDEPMODE=''
CFLAGS='-O3'
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP=''
EXEEXT=''
GREP=''
HAVE_WINDOWS_FALSE=''
HAVE_WINDOWS_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
JANSSON_LIBS=''
LDFLAGS=''
LIBCURL=''
LIBCURL_CPPFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /usr/cpuminer/cpuminer-2.4.4/missing makeinfo'
MKDIR_P='./install-sh -c -d'
OBJEXT=''
PACKAGE='cpuminer'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='cpuminer'
PACKAGE_STRING='cpuminer 2.4.4'
PACKAGE_TARNAME='cpuminer'
PACKAGE_URL=''
PACKAGE_VERSION='2.4.4'
PATH_SEPARATOR=':'
PTHREAD_FLAGS=''
PTHREAD_LIBS=''
RANLIB=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
USE_ASM_FALSE=''
USE_ASM_TRUE=''
VERSION='2.4.4'
WANT_JANSSON_FALSE=''
WANT_JANSSON_TRUE=''
WS2_LIBS=''
_libcurl_config=''
ac_ct_CC='gcc'
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCCAS_FALSE=''
am__fastdepCCAS_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__nodep='_no'
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build='powerpc-ibm-aix7.1.0.0'
build_alias=''
build_cpu='powerpc'
build_os='aix7.1.0.0'
build_vendor='ibm'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='powerpc-ibm-aix7.1.0.0'
host_alias=''
host_cpu='powerpc'
host_os='aix7.1.0.0'
host_vendor='ibm'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /usr/cpuminer/cpuminer-2.4.4/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='powerpc-ibm-aix7.1.0.0'
target_alias=''
target_cpu='powerpc'
target_os='aix7.1.0.0'
target_vendor='ibm'

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "cpuminer"
#define PACKAGE_TARNAME "cpuminer"
#define PACKAGE_VERSION "2.4.4"
#define PACKAGE_STRING "cpuminer 2.4.4"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define PACKAGE "cpuminer"
#define VERSION "2.4.4"

configure: exit 77
legendary
Activity: 1470
Merit: 1114
appreciate your work. Is there a way for a noob to compile scrypt-jane support into your latest optimized cpuminer? Thanks.

cpuminer-opt (see sig) supports scrypt-jane and many other algos.
hero member
Activity: 838
Merit: 507
appreciate your work. Is there a way for a noob to compile scrypt-jane support into your latest optimized cpuminer? Thanks.

Sorry, I don't think so.
newbie
Activity: 35
Merit: 0
appreciate your work. Is there a way for a noob to compile scrypt-jane support into your latest optimized cpuminer? Thanks.
hero member
Activity: 838
Merit: 507
memleak still is present - 2MB per getblocktemplate request.

I must have missed this one because it only happens when long polling is enabled. Anyway, I've just pushed a fix to the git repo. Thank you again!
newbie
Activity: 20
Merit: 0
Version 2.4.4

This is a bugfix release to address a nasty memory leak affecting getblocktemplate mode since version 2.4.

The source code is, as always, available at GitHub. Source tarball and binaries are available at Sourceforge.


Thanks for a release, but memleak still is present - 2MB per getblocktemplate request. I also see lowered I/O and page priority values, that looks better.

Why is this reported as a threat? I cant even download it, chrome and firefox are going red!

I also saw that red warning, you should be able to ignore this warning and download this software. It is marked red because it is easiest way for antivirus (or virus that detects other viruses) to identify that your system is compromised. Usually antivirus detects miner executable but main virus remains in system.
legendary
Activity: 2730
Merit: 7065
Farewell, Leo. You will be missed!
Why is this reported as a threat? I cant even download it, chrome and firefox are going red!
newbie
Activity: 24
Merit: 0
hi all has anyone been able to compile on a raspberry pi 2 or 3 for hodl if so can you tell me how

ty
ps it runs so nice on ubuntu
hero member
Activity: 838
Merit: 507
@pooler
I contacted u a few days ago by email about scrypt_core() for aarch64, I don't know how to code a .S file but I came up with a temporary solution:
A fallback written in C++ for unsupported architectures.  
simply place the fallback before the others in build order and it would compile, and be replace by optimized version if the architecture is supported Smiley

As I've told you in my email, I still haven't been able to test cpuminer on aarch64, but time allowing I plan to look into this soon.
If you're OK with an unoptimized build, I think as a temporary solution configuring with --disable-assembly should be enough.
hero member
Activity: 630
Merit: 500
@pooler
I contacted u a few days ago by email about scrypt_core() for aarch64, I don't know how to code a .S file but I came up with a temporary solution:
A fallback written in C++ for unsupported architectures.  
simply place the fallback before the others in build order and it would compile, and be replace by optimized version if the architecture is supported Smiley
This file is critical to my build of Diamond wallet.
Your scrypt-arm.S file will not build on aarch64.
This is ONLY thing stopping build Sad
https://bitcointalksearch.org/topic/m.14296622
Like I said if I had C++ source I could get it to run (likely slower).

DMD Diamond coin:
https://bitcointalksearch.org/topic/ann-dmd-diamond-30-scarce-valuable-secure-pos-30-masternodes-65-580725
hero member
Activity: 838
Merit: 507
Version 2.4.4

This is a bugfix release to address a nasty memory leak affecting getblocktemplate mode since version 2.4.

The source code is, as always, available at GitHub. Source tarball and binaries are available at Sourceforge.
hero member
Activity: 838
Merit: 507
I ran into this a few days ago, it's quite relevant: https://www.reddit.com/r/ProgrammerHumor/comments/479o3r/open_source_documentation/
While I agree that the proposed "fix" is rather harsh, one could argue that if you don't know what a CLI is then you almost certainly don't want to run cpuminer, as nowadays its practical uses are limited to stress testing and to the debugging of other mining-related software.
hero member
Activity: 758
Merit: 500
garbage it doesnt even open up so you can configure it .
Pages:
Jump to: