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 tips for Ubuntu (or any other Linux-like system) #39

Open
Umiiii opened this issue May 26, 2024 · 2 comments
Open

Compile tips for Ubuntu (or any other Linux-like system) #39

Umiiii opened this issue May 26, 2024 · 2 comments

Comments

@Umiiii
Copy link

Umiiii commented May 26, 2024

I spent a whole week on this project, so here are some tips for you to save the time:

apt-get update && apt-get install -y --no-install-recommends \
        curl wget \
        ocl-icd-libopencl1 \
        opencl-headers \
        nano \
        build-essential \
        clinfo pkg-config && \
    rm -rf /var/lib/apt/lists/*

mkdir -p /etc/OpenCL/vendors && \
    echo "libnvidia-opencl.so.1" > /etc/OpenCL/vendors/nvidia.icd

ln -s /usr/local/cuda/lib64/libOpenCL.so.1 /usr/lib/libOpenCL.so

echo "/usr/local/nvidia/lib" >> /etc/ld.so.conf.d/nvidia.conf && \
    echo "/usr/local/nvidia/lib64" >> /etc/ld.so.conf.d/nvidia.conf

export PATH=/usr/local/nvidia/bin:${PATH}
export LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64:${LD_LIBRARY_PATH}

# nvidia-container-runtime
export NVIDIA_VISIBLE_DEVICES=all
export NVIDIA_DRIVER_CAPABILITIES=compute,utility
@Umiiii
Copy link
Author

Umiiii commented May 26, 2024

I also created a github action to build:

https://github.com/Umiiii/profanity2/blob/master/.github/workflows/c-cpp.yml

@tajelp
Copy link

tajelp commented Aug 30, 2024

I still get no devices.

$ ./profanity2.x64 --leading 0 -z $pubkey
Mode: leading
Target: Address
Devices:

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

2 participants