Bitcoin Forum
May 17, 2022, 08:11:55 AM *
News: Latest Bitcoin Core release: 23.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Mining software (miners) / Workaround for Nvidia OpenCL 100% CPU usage on linux. on: April 20, 2013, 10:07:41 AM
Little workaround for nvidia eating 100% CPU when running OpenCL apps on linux.

Download link:

http://mk.junkyard.one.pl/libsleep.c

To compile run:
gcc -O2 -fPIC -shared -Wl,-soname,libsleep.so -o libsleep.so libsleep.c

To use:
LD_PRELOAD="./libsleep.so" ./cgminer

You can configure sleep time by setting
YIELD_SLEEP_TIME environment variable (in microseconds)
Default is 1000usec
Example:
YIELD_SLEEP_TIME="1500" LD_PRELOAD="./libsleep.so" ./cgminer

How does it work:
It overrides sched_yield function called during running OpenCL program with call to usleep.
Expect a little performance drop (less than 5%) - adjust YIELD_SLEEP_TIME for your needs.
The longer opencl program running time (ie. higher agression), the lower the performance drop is.

Does someone who is affected by similar problem with ATI cards would be willing to give me access to their system, so i could look up how to resolve this issue with ATI?
2  Other / Beginners & Help / Workaround for Nvidia OpenCL 100% CPU usage on linux. on: April 19, 2013, 02:57:36 PM
Little workaround for nvidia eating 100% CPU when running OpenCL apps.

mk.junkyard.one.pl/libsleep.c

To compile run:
gcc -O2 -fPIC -shared -Wl,-soname,libsleep.so -o libsleep.so libsleep.c

To use:
LD_PRELOAD="./libsleep.so" ./cgminer

You can configure sleep time by setting
YIELD_SLEEP_TIME environment variable (in microseconds)
Default is 1000usec
Example:
YIELD_SLEEP_TIME="1500" LD_PRELOAD="./libsleep.so" ./cgminer

How does it work:
It overrides sched_yield function called during running OpenCL program with call to usleep.
Expect a little performance drop (less than 5%) - adjust YIELD_SLEEP_TIME for your needs.
The longer opencl program running time (ie. higher agression), the lower the performance drop is.

Does someone who is affected by similar problem with ATI cards would be willing to give me access to their system, so i could look up how to resolve this issue with ATI?
3  Other / Beginners & Help / cudaMiner patch for x86_64 linux on: April 18, 2013, 11:22:37 PM
Little patch for compiling & running cudaminer on native 64bit linux.

mk.junkyard.one.pl/cudaminer-2013.04.17-64bit.patch.gz

To apply to cudaMiner source download the file & issue command:
Code:
zcat cudaminer-2013.04.17-64bit.patch.gz | patch -p1

I only tested the salsa kernel, and i'm not sure if titan kernel will work.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!