Commit Graph
41 Commits
Author SHA1 Message Date
Unknown cabd46f39f Remove whitespace lines 2017-11-16 13:42:27 +00:00
psychocrypt 157dd16574 fix wrong indentions by hand after auto conversion 2017-11-16 12:28:54 +01:00
psychocrypt d0b99bb4c6 remove space indention with tabs
- removed all space indention in `*.hpp` and `*.cpp` files
2017-11-16 12:21:38 +01:00
psychocryptandGitHub 1dc874c542 Merge pull request #115 from fireice-uk/topic-net-ext
Network extensions
2017-11-16 12:12:40 +01:00
fireice-ukandpsychocrypt 117493dc53 Fix misc bugs (#117)
* CONF_NO_TLS fix

* gpu error fix + always return to sched after pin
2017-11-15 16:34:21 +01:00
Unknown 608139ccde Pass threadno up the food chain 2017-11-14 16:42:12 +00:00
psychocrypt 13433097a3 add backend type
- add type of the backend to each backend-plugin
- add `gteName` to `iBackend` to get the name of the backend
2017-11-10 22:37:30 +01:00
psychocrypt 3aa04f2871 tune VEGA auto suggestion
- allow to use up to 2024 threads on VEGA gpus

fix #5
2017-10-27 22:17:57 +02:00
psychocrypt 3e091d9251 increase safety memory for autosuggestion
- increase safty memory from 64 to 128 MiB
- NVIDIA: increase lmem reserve per thread to 1kiB
2017-10-27 21:40:38 +02:00
psychocrypt 12802f12e3 rename xmr to monero
- rename all `xmr` to `monero`
- be insensitive while check for set currency
- add function to compate two strings insensitive
2017-10-27 20:13:19 +02:00
psychocrypt 2346c8be20 add eon support to amd backend
- add compile parameter to support aeon and xmr
- update auto suggestion to handle aeon
2017-10-27 20:12:01 +02:00
fireice-ukandGitHub 91b307859e Merge pull request #69 from psychocrypt/topic-threadAffinity
thread affinity for non cpu backends
2017-10-27 17:19:00 +01:00
psychocrypt b5a7e4eb7f check if affinity must be set
- check if affinity vale before calling `thd_setaffinity`
2017-10-27 16:59:44 +02:00
psychocrypt b685c90fc2 thread affinity for non cpu backends
This is a follow up of #43 and use the some mechanism to set the thread affinity for
non cpu backends correct.

- use cpu affinity workflow for nvidia and amd
- cpu: move messages of thread spawning before thread creation
2017-10-26 23:09:14 +02:00
psychocrypt 8888a60898 amd: use 64bit target
- remove 32bit target value
- use always 64bit target for amd backend
2017-10-24 23:22:28 +02:00
fireice-ukandGitHub 7030f1b3ab Merge pull request #45 from fireice-uk/topic-nonce-alloc
Implement pool-controlled nonce allocation
2017-10-23 19:14:20 +01:00
fireice-uk 203fad6181 Proper removal of gpu_thread_num 2017-10-22 14:18:32 +01:00
fireice-uk 265ef629a1 Fix GPU nicehash support 2017-10-22 13:15:18 +01:00
fireice-uk d3c5911f8e move nicehash check into nonce calc 2017-10-22 13:15:18 +01:00
fireice-uk 98a4caa224 Implement changes suggested 2017-10-22 13:12:52 +01:00
fireice-uk f13f70c28e Implement pool-controlled nonce allocation 2017-10-22 13:12:52 +01:00
psychocrypt 630bcffb9f fix assert in AMD backend
fix bug announced in #52

If the miner is compiled in debug mode the assert condition results in a compile time error.
2017-10-20 21:25:08 +02:00
fireice-ukandGitHub dcd176ada4 Merge pull request #44 from fireice-uk/fix-uninit-access
Make sure all singletons are set to null and make env a global ptr
2017-10-17 16:55:32 +01:00
fireice-uk d59495110d Make sure all singletons are set to null and make env a global ptr 2017-10-12 22:28:35 +01:00
fireice-uk 632d0758d2 remove the gpu_thread_num safety 2017-10-12 00:23:20 +01:00
fireice-ukandGitHub 01b4460b95 Merge pull request #24 from psychocrypt/fix-amdEarlyReturn
remove early returns
2017-10-11 16:36:46 +01:00
psychocrypt e0b93c2216 improve AMD auto suggestion
- use always a multiple of the number of compute units
- add more device information to the config file
2017-10-10 21:12:34 +02:00
psychocrypt 2c2d05e57a remove early returns
Early returns within a kernel can have unexpected behavior, this strongly depends on the opencl
runtime compiler. To avoid errors all early returns are removed.
There is no negative effect(e.g.performance) if the threads stay alive up to the end of the kernel.

One source for the early return is: http://al-key-opencl.blogspot.de/2014/09/be-careful-not-to-mix-early-return-and.html

This pull request also fix a race condition where all fill the shared memory.
Also a bug introduced with #16 is fixed, because of the early return not was possible that
the last block works with an wrong initilized shared memory (result should be a wrong hash if the result target size is valid).
2017-10-10 21:04:37 +02:00
psychocrypt 611378eb96 avoid possible illegal memory access
Is is possible that the number of results are greater than the result output array,
in this case invalid memory can be access within the device and on the host side.
2017-10-06 21:50:51 +02:00
fireice-ukandGitHub 83752eccc0 Merge pull request #16 from psychocrypt/fix-invalidKernelCall
fix invalid kernel call parameter
2017-10-06 15:22:29 +01:00
psychocrypt 65d47dbb31 add assert to validate number of global threads
check that the number of global threads is a multiple of the workgroup size
2017-10-05 22:22:30 +02:00
psychocrypt 0304a7b09e fix invalid kernel call parameter
The number of threads within a kernel must be a multiple of the worksize.
If not it can crash on some systems.
2017-10-05 00:27:37 +02:00
psychocrypt bf07d73ca1 fix amd auto suggestion
Platform index zero was always used to search for the device detection.

Fix: use correct detected AMD platform index
2017-10-04 23:15:33 +02:00
psychocrypt 1f40f88a0c readd nicehash pool support
use nicehash start nonce in all backends if nicehash is enabled
2017-10-01 21:04:12 +02:00
psychocrypt c30c258b91 nvidia: fix return value if no device is found 2017-09-30 23:46:08 +02:00
psychocrypt bb3e8840d7 fix windows compile
- string literal can only be 16kbyte
2017-09-30 23:46:08 +02:00
psychocrypt 75fa2c7ec0 fix clang CUDA compile
- add clang compile section
- cleanup CMake file
- fix missing return value
2017-09-30 23:46:08 +02:00
psychocrypt d80cc9061d rename Params to params 2017-09-30 23:46:08 +02:00
psychocrypt 855af1cf65 fix compile 2017-09-30 23:46:08 +02:00
psychocrypt 8babae3156 cleanup includes 2017-09-30 23:46:08 +02:00
psychocrypt cc429b68fa group files
- move source code to `src`
- categorize files and move to group folder
- change upper case class files to lower case
- change C++ header to `*.hpp`
2017-09-30 23:46:08 +02:00