GithubHelp home page GithubHelp logo

Comments (9)

SChernykh avatar SChernykh commented on June 5, 2024

Manually compiled with same procedure as always and on same machine as always

You need to add -DWITH_DRIVER_API=ON to enable kawpow in XMRig-CUDA 6.4.0: e787835

from xmrig-cuda.

xmrig avatar xmrig commented on June 5, 2024

It should be enabled by default, but it might somehow disabled in your build and you need to explicitly enable it, also plugin 6.3.2 should work with the new miner.
Thank you.

from xmrig-cuda.

tymoteuszrogalewski avatar tymoteuszrogalewski commented on June 5, 2024

Hi
Using old 6.3.2 cuda plugin helps.

But the 6.4.0...
In the downloaded sources there is already set ON as default:
option(WITH_DRIVER_API "Enable CUDA Driver API and NVRTC, required for cn/r and kawpow algorithms" ON)

adding -DWITH_DRIVER_API=ON to cmake didnt help - same error during mining.
I even try to remove all "if" lines in sources, as below:
if (WITH_DRIVER_API)
in these few files...but still same error during mining.

Compile log below:
as I see the kawpow "stuff" is compiled.
maybe some other missing code is some there??

/xxx/xmrig-cuda-6.4.0# cuda 9.2; cd cmake && export PATH=/usr/local/cuda-9.2/bin:$PATH; cmake .. -DWITH_DRIVER_API=ON -DCMAKE_C_COMPILER=gcc-5 -DCMAKE_CXX_COMPILER=g++-5 -DCUDA_LIB=/usr/local/cuda/lib64/stubs/libcuda.so && make -j12
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/gcc-5
-- Check for working C compiler: /usr/bin/gcc-5 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/g++-5
-- Check for working CXX compiler: /usr/bin/g++-5 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for __builtin___clear_cache
-- Looking for __builtin___clear_cache - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found CUDA: /usr/local/cuda-9.2 (found suitable version "9.2", minimum required is "9.0")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/miner/tym/xmrig-cuda/xmrig-cuda-6.4.0/cmake
[ 6%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/arqma/xmrig-cu_generated_randomx_arqma.cu.o
[ 18%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/keva/xmrig-cu_generated_randomx_keva.cu.o
[ 18%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/monero/xmrig-cu_generated_randomx_monero.cu.o
[ 25%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/xmrig-cu_generated_cuda_extra.cu.o
[ 31%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/KawPow/raven/xmrig-cu_generated_KawPow.cu.o
[ 37%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/wownero/xmrig-cu_generated_randomx_wownero.cu.o
[ 43%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/xmrig-cu_generated_cuda_core.cu.o
[ 50%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/AstroBWT/dero/xmrig-cu_generated_AstroBWT.cu.o
[ 56%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/xmrig-cu_generated_randomx.cu.o
/home/miner/tym/xmrig-cuda/xmrig-cuda-6.4.0/src/RandomX/randomx_cuda.hpp(319): warning: pointless comparison of unsigned integer with zero

/home/miner/tym/xmrig-cuda/xmrig-cuda-6.4.0/src/RandomX/randomx_cuda.hpp(319): warning: pointless comparison of unsigned integer with zero

/usr/local/cuda-9.2/include/thrust/system/cuda/detail/util.h:189:13: warning: ‘void thrust::cuda_cub::throw_on_error(cudaError_t, const char*)’ defined but not used [-Wunused-function]
throw_on_error(cudaError_t status, char const *msg)
^
cc1plus: warning: unrecognized command line option ‘-Wno-class-memaccess’
/home/miner/tym/xmrig-cuda/xmrig-cuda-6.4.0/src/RandomX/randomx_cuda.hpp(319): warning: pointless comparison of unsigned integer with zero

/home/miner/tym/xmrig-cuda/xmrig-cuda-6.4.0/src/RandomX/randomx_cuda.hpp(319): warning: pointless comparison of unsigned integer with zero

/home/miner/tym/xmrig-cuda/xmrig-cuda-6.4.0/src/RandomX/randomx_cuda.hpp(319): warning: pointless comparison of unsigned integer with zero

/home/miner/tym/xmrig-cuda/xmrig-cuda-6.4.0/src/cuda_extra.cu: In function ‘int cuda_get_deviceinfo(nvid_ctx*)’:
/home/miner/tym/xmrig-cuda/xmrig-cuda-6.4.0/src/cuda_extra.cu:569:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (ctx->device_blocks > max_blocks) {
^
At global scope:
cc1plus: warning: unrecognized command line option ‘-Wno-class-memaccess’
Scanning dependencies of target xmrig-cu
[ 62%] Building CXX object CMakeFiles/xmrig-cu.dir/src/KawPow/raven/CudaKawPow_gen.cpp.o
[ 68%] Linking CXX static library libxmrig-cu.a
[ 68%] Built target xmrig-cu
Scanning dependencies of target xmrig-cuda
[ 75%] Building C object CMakeFiles/xmrig-cuda.dir/src/crypto/cn/c_blake256.c.o
[ 81%] Building CXX object CMakeFiles/xmrig-cuda.dir/src/crypto/common/Algorithm.cpp.o
[ 87%] Building CXX object CMakeFiles/xmrig-cuda.dir/src/xmrig-cuda.cpp.o
[ 93%] Building CXX object CMakeFiles/xmrig-cuda.dir/src/CudaCryptonightR_gen.cpp.o
[100%] Linking CXX shared library libxmrig-cuda.so
[100%] Built target xmrig-cuda

from xmrig-cuda.

SChernykh avatar SChernykh commented on June 5, 2024

It looks like you didn't clear your build folder before building new code. Internal algorithm IDs changed in 6.4.0 and if you link some compiled files from 6.3.2 with other files from 6.4.0, it can break. Delete the whole folder and build from scratch.

from xmrig-cuda.

tymoteuszrogalewski avatar tymoteuszrogalewski commented on June 5, 2024

All is deleted every new build - everytime start from fresh folder ;-)

Specially for you I now did again from scratch: (this time compile with CUDA 9.2...but issue same, as with CUDA 10)

exactly as follow:
rm -rf * (:xD)
wget https://github.com/xmrig/xmrig-cuda/archive/v6.4.0.tar.gz
tar -xzf v6.4.0.tar.gz
cd xmrig-cuda-6.4.0
cd cmake && export PATH=/usr/local/cuda-9.2/bin:$PATH; cmake .. -DWITH_DRIVER_API=ON -DCMAKE_C_COMPILER=gcc-5 -DCMAKE_CXX_COMPILER=g++-5 -DCUDA_LIB=/usr/local/cuda/lib64/stubs/libcuda.so && make -j12

some logs during compile:
-- Build files have been written to: /home/miner/tym/xmrig-cuda/xmrig-cuda-6.4.0/cmake
[ 12%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/KawPow/raven/xmrig-cu_generated_KawPow.cu.o
[ 12%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/xmrig-cu_generated_cuda_core.cu.o
[ 18%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/xmrig-cu_generated_cuda_extra.cu.o
[ 25%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/keva/xmrig-cu_generated_randomx_keva.cu.o
[ 31%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/monero/xmrig-cu_generated_randomx_monero.cu.o
[ 37%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/xmrig-cu_generated_randomx.cu.o
[ 43%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/wownero/xmrig-cu_generated_randomx_wownero.cu.o
[ 50%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/arqma/xmrig-cu_generated_randomx_arqma.cu.o
[ 56%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/AstroBWT/dero/xmrig-cu_generated_AstroBWT.cu.o
[ 62%] Building CXX object CMakeFiles/xmrig-cu.dir/src/KawPow/raven/CudaKawPow_gen.cpp.o
[ 68%] Linking CXX static library libxmrig-cu.a
[ 68%] Built target xmrig-cu
[ 75%] Building C object CMakeFiles/xmrig-cuda.dir/src/crypto/cn/c_blake256.c.o
[ 81%] Building CXX object CMakeFiles/xmrig-cuda.dir/src/crypto/common/Algorithm.cpp.o
[ 87%] Building CXX object CMakeFiles/xmrig-cuda.dir/src/xmrig-cuda.cpp.o
[ 93%] Building CXX object CMakeFiles/xmrig-cuda.dir/src/CudaCryptonightR_gen.cpp.o
[100%] Linking CXX shared library libxmrig-cuda.so
[100%] Built target xmrig-cuda

now copy file libxmrig-cuda.so to the folder xmrig-v6.4.0 - where I have all is required to run miner:
xmrig binary compiled from sources
libnvrtc-builtins.so and libnvrtc.so.9.2 libraries from cuda 9.2 package
xmrig-6.4.0 was also compiled from scratch with fresh empty folder...as always I do.

and then run miner with prepended:
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./; export LD_LIBRARY_PATH;
to get working local folder cuda libraries

and....errors still as in first post.

from xmrig-cuda.

SChernykh avatar SChernykh commented on June 5, 2024

There was an algorithm list mismatch in 6.4.0 between xmrig and xmrig-cuda.

from xmrig-cuda.

tymoteuszrogalewski avatar tymoteuszrogalewski commented on June 5, 2024

@SChernykh thanks. this patch helps and now cuda plugin works ;-)

from xmrig-cuda.

jgonzis avatar jgonzis commented on June 5, 2024

That Works perfect!!! Manually update Algoritm list and working!!

from xmrig-cuda.

xmrig avatar xmrig commented on June 5, 2024

https://github.com/xmrig/xmrig-cuda/releases/tag/v6.4.1 This was Linux specific bug, algorithm id mismatch wasn't a root issue, it just hid a real issue for long time
Thank you.

from xmrig-cuda.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.