Skip to content
This repository has been archived by the owner on Sep 15, 2022. It is now read-only.

missing INSTALL.md or packages needed to compile #48

Open
SmartLayer opened this issue May 10, 2021 · 2 comments
Open

missing INSTALL.md or packages needed to compile #48

SmartLayer opened this issue May 10, 2021 · 2 comments

Comments

@SmartLayer
Copy link

On a Ubuntu set up, I can tell that opencl-c-headers are needed but not sure what other packages are required for compiling. Thanks.

@GillesJ
Copy link

GillesJ commented Jun 4, 2021

These are the steps on Ubuntu 20.04:

  1. Install opencl dependencies: apt-get install ocl-icd-opencl1 ocl-icd-opencl-dev opencl-headers
  2. Compile binary using Makefile: cd ./profanity && make
  3. Make 'profanity.x64' executable: chmod +x profanity.x64
  4. Run: ./profanity.x64 or bash profanity.x64 if you're using an alternative shell.

Funnily enough the executable throws errors when I invoke bash ./profanity.x64 from zsh, so I had to drop to bash first.

@SmartLayer
Copy link
Author

SmartLayer commented Jul 2, 2021

In step 1 I got this (Yes I am on Ubuntu 20.04)

$ LANG=en sudo apt-get install ocl-icd-opencl1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package ocl-icd-opencl1

After struggling for a while I got compilation working using

$ sudo apt install nvidia-opencl-dev  ocl-icd-opencl-dev opencl-headers

But the resulting file doesn't work. See issue #51

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

No branches or pull requests

2 participants