migeyel / pmkam

An OpenCL vanity address miner for Krist.
GNU General Public License v3.0
4 stars 3 forks source link

[Suggestion] OpenCL installation detection #2

Open hugeblank opened 1 year ago

hugeblank commented 1 year ago

The following error occurs when I run ./pmkam mine and ./pmkam list

thread 'main' panicked at 'Platform::list: Error retrieving platform list: ApiWrapper(GetPlatformIdsPlatformListUnavailable(10))', /home/miguel/.cargo/registry/src/github.com-1ecc6299db9ec823/ocl-0.19.4/src/standard/platform.rs:50:14
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
hugeblank commented 1 year ago

I've found out that this is because I didn't have OpenCL installed. Should have assumed it wasn't installed. A more verbose error message would be appreciated.