Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile error #336

Open
SJS-dev opened this issue Oct 11, 2021 · 0 comments
Open

compile error #336

SJS-dev opened this issue Oct 11, 2021 · 0 comments

Comments

@SJS-dev
Copy link

SJS-dev commented Oct 11, 2021

/usr/src/xmrig-cuda-6.15.1/src/cuda_extra.cu: In function ‘void cryptonight_extra_cpu_prepare(nvid_ctx*, uint32_t, const xmrig_cuda::Algorithm&)’:
/usr/src/xmrig-cuda-6.15.1/src/cuda_extra.cu:415:170: warning: passing argument 5 to restrict-qualified parameter aliases with argument 6 [-Wrestrict]
CUDA_CHECK_KERNEL(ctx->device_id, cryptonight_extra_gpu_prepareAlgorithm::CN_0<<<grid, block >>>(wsize, ctx->d_input, ctx->inputlen, startNonce,
^
/usr/src/xmrig-cuda-6.15.1/src/cuda_extra.cu: In function ‘int cuda_get_deviceinfo(nvid_ctx*)’:
/usr/src/xmrig-cuda-6.15.1/src/cuda_extra.cu:571:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const size_t’ {aka ‘const long unsigned int’} [-Wsign-compare]
if (ctx->device_blocks > max_blocks) {
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~

/usr/src/xmrig-cuda-6.15.1/src/RandomX/randomx_cuda.hpp(319): warning: pointless comparison of unsigned integer with zero

using:
cmake .. -DCMAKE_C_COMPILER=$(which gcc-8) -DCMAKE_CXX_COMPILER=$(which g++-8)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant