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

cgminer.ехе --scrypt в -о рогового TCP://алгоритме scrypt.eobot.ком:4444 --пароля пользователя eobot.405439:х minerd.ехе -скрипт -О'рогового TCP://скрипт.eobot.ком:4444 --пароля пользователя eobot.405439:х #475

Open
wants to merge 96 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
63afb25
tools: typo in update_changelog.sh.
veox Jun 27, 2014
db40274
convert tabs to spaces in kernel files
Elbandi Jul 1, 2014
6c60ce2
Fix kernel code style: every hash has own codeblocks
Elbandi Jun 27, 2014
21d3ad4
added sgminer.1 manpage file, draft
davedean Jul 3, 2014
e15f354
Updated AUTHORS.md
troky Jul 3, 2014
a39316d
Fix nonce1 and sessionid memory leak
Elbandi Jul 3, 2014
8567370
Merge pull request #316 from Elbandi/v5_0-leakfix
troky Jul 3, 2014
c196dfd
MSVS2010 project update.
troky Jul 3, 2014
03daaff
Merge pull request #313 from davedean/master
mrbrdo Jul 3, 2014
e8f1089
Merge pull request #292 from Elbandi/v5_0
mrbrdo Jul 3, 2014
30d0a9b
Deprecating "difficulty-multiplier" setting
mrbrdo Jul 3, 2014
2902429
Add algorithm aliases x11, x13, x15, x15mod, nist5, keccak
mrbrdo Jul 3, 2014
94607ba
Merge pull request #310 from sgminer-dev/v5_0-jansson
troky Jul 3, 2014
fdd4e84
Update README.md
troky Jul 3, 2014
b6aefc6
Fixed segfault when adding pool profile via ncurses GUI #322
troky Jul 4, 2014
8001dc0
Algorithm alias fix
ystarnaud Jul 4, 2014
e64291e
Fix bitblock algo code style
Elbandi Jul 4, 2014
0a66d49
Fix x14 algo code style
Elbandi Jul 4, 2014
855adf1
Merge pull request #324 from Elbandi/v5_0-stylefix
troky Jul 4, 2014
a96048e
Update configuration.md
ystarnaud Jul 5, 2014
485ec9a
rename poorly named variable
mrbrdo Jul 5, 2014
eb6f47e
Add debug-log setting to log everything when stderr is redirected to …
mrbrdo Jul 5, 2014
f3336dc
Update README.md
mrbrdo Jul 5, 2014
2d66c44
Add debug-log documentation and enable it by default
mrbrdo Jul 5, 2014
363f52d
Write to both stderr and console within same console lock "session"
mrbrdo Jul 5, 2014
e33590f
Thread was never joined because thr_info_cancel sets pth to 0. Should…
mrbrdo Jul 7, 2014
0bd7a9f
After cancelling a thread (unless it's detached, but mining threads a…
mrbrdo Jul 7, 2014
4a9ee47
Add log-file option to automatically redirect stderr to a file
mrbrdo Jul 7, 2014
2d23a7d
Added missing permission flags to Windows build #333
troky Jul 7, 2014
04722e2
sshare could have already been free'd by parse_stratum_response in st…
mrbrdo Jul 8, 2014
b4dd3ae
Forgot include needed for pthread_kill
mrbrdo Jul 8, 2014
72590bd
Fix potential division by 0 if nfactor is not set
ystarnaud Jul 8, 2014
8b44007
Fixed compatilibilty issues on MSVS.
troky Jul 9, 2014
f8fcbbc
Config writer fix
ystarnaud Jul 9, 2014
a408e85
Fix API profile list
ystarnaud Jul 9, 2014
e0b3448
Fixed compatilibilty issues on MSVS.
troky Jul 11, 2014
283e8fb
Added coding.md
troky Jul 11, 2014
19fcb5e
improve locking to prevent race condition
mrbrdo Jul 11, 2014
deacbdd
immediately exit threads if doing hard reset
mrbrdo Jul 7, 2014
5bd2689
Hard reset only when gpu-threads or devices are changed, but not when…
mrbrdo Jul 7, 2014
82b5320
Check if mining threads are initialized before restarting them.
troky Jul 19, 2014
dbe0263
Fixed device display when both --device and --remove-disabled options…
troky Jul 20, 2014
3ddffaa
Compatibility fix.
troky Jul 21, 2014
5bf26e7
Update cygwin-build.txt
Phoenix48 Jul 22, 2014
92a9250
Merge pull request #361 from Phoenix48/patch-1
mrbrdo Jul 27, 2014
447dd68
Merge branch 'v5_0'
mrbrdo Sep 2, 2014
7a16f78
bump version to 5.0.0, update changelog
mrbrdo Sep 2, 2014
0ec4912
update changelog for v5 release
mrbrdo Sep 2, 2014
e39121b
Version bump for MSVS project.
troky Sep 3, 2014
eb2ad8b
Removed AMD APP SDK include files.
troky Sep 3, 2014
a90bbf7
Added "Fresh" Algorithm and optimized it for a slight speed increase …
ystarnaud Jul 8, 2014
b3c07ac
Xn Algorithms Fine Tuning
ystarnaud Jul 28, 2014
c3e1842
Added documentation for Xn algorithm options
ystarnaud Jul 28, 2014
9603479
Cleanup X11/X13 options
ystarnaud Jul 29, 2014
247d70e
more algo optimization
badman74 Aug 3, 2014
e481d67
MSVS fix.
troky Sep 19, 2014
32d95dd
Updated to MSVS 2013
troky Nov 16, 2014
ba9818a
Fix version display in windows builds (mingw)
troky Nov 16, 2014
b53cc15
Fix worksize per GPU
ystarnaud Nov 9, 2014
1005853
Update windows-build.txt
Phoenix48 Nov 17, 2014
2fe4551
Update windows-build.txt
Phoenix48 Nov 17, 2014
ce36358
Update windows-build.txt
Phoenix48 Nov 17, 2014
95134c7
Merge pull request #399 from Phoenix48/patch-2
troky Nov 17, 2014
c0515e8
Added alt kernel file option
ystarnaud Nov 19, 2014
0557017
Merge branch 'master' of https://github.com/sgminer-dev/sgminer
troky Nov 19, 2014
42737ac
Added Neoscrypt with Wolf9466 improvements.
ystarnaud Nov 19, 2014
8a6168f
Fix for UI/API intensity changes
ystarnaud Nov 4, 2014
611b370
Fix for random HW errors
ystarnaud Nov 12, 2014
81d9c9e
Events framework
ystarnaud Nov 19, 2014
7f88bab
Fixed missing declaration.
troky Nov 23, 2014
4ba8a68
Merged develop branch with master +updates
ystarnaud Dec 3, 2014
4ced43b
MSVS fix.
troky Dec 3, 2014
387bb28
Neoscrypt fixes
ystarnaud Dec 4, 2014
cd9d037
Fix errors compiling on OS X
nwoolls Jan 13, 2015
f27f8dd
Merge pull request #408 from nwoolls/bug/clang-inline-errors
troky Jan 13, 2015
89c380a
Added WhirlpoolX algorithm
troky Mar 9, 2015
f366619
Version bump to 5.1.1
troky Mar 9, 2015
8d68e96
Added Lyra2RE algo
troky Mar 10, 2015
8cb4fc9
Added Pluck algo
troky Mar 10, 2015
c50e3d2
added some changes after refork
badman74 Mar 10, 2015
f1bf570
Merge pull request #411 from badman74/master
troky Mar 18, 2015
ae87ca6
wolf's whirlpoolx mod
troky Mar 25, 2015
fe62dc7
wolf's improvements #2
troky Mar 25, 2015
f157dd9
Fixed uninitialized key array.
troky Mar 26, 2015
1854e96
Reverted create_opencl_command_queue
troky Mar 26, 2015
137519d
Merge branch 'wolf-whirlpoolx'
troky Mar 28, 2015
7811d37
Renamed Lyra2 OpenCL kernel files to make them accessible in Linux also.
netswift Mar 28, 2015
632ea79
Merge remote-tracking branch 'sgminer-dev/master'
netswift Mar 28, 2015
e729bd0
Updated the compilation instructions.
netswift Mar 28, 2015
c536243
Merge pull request #412 from netswift/master
troky Mar 28, 2015
55da7b5
Removed bitalign/opcode patching code. It's dead, and no one else is …
Apr 7, 2015
e59c616
When my WhirlpoolX code was checked in, I used C99 features that caus…
Apr 7, 2015
5fe8555
Merge pull request #414 from wolf9466/master
troky Apr 7, 2015
666641b
Removed patch_kernel.* from MSVS project.
troky Apr 7, 2015
d0881e8
store the next difficulty
bitbandi Jun 18, 2015
8bf1c18
Merge pull request #418 from bitbandi/diffbug
troky Jul 19, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
After cancelling a thread (unless it's detached, but mining threads a…
…ren't), it is always necessary to join the thread so the system will release resources.

This also simplifies kill_mining a bit.
  • Loading branch information
mrbrdo committed Jul 7, 2014
commit 0bd7a9ff639e2a17dc5c031e154d3785be3fdcc0
4 changes: 2 additions & 2 deletions driver-opencl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1061,9 +1061,9 @@ void *reinit_gpu(void *userdata)
thr->rolling = thr->cgpu->rolling = 0;
/* Reports the last time we tried to revive a sick GPU */
cgtime(&thr->sick);
if (!pthread_cancel(thr->pth)) {
if (!pthread_kill(thr->pth, 0)) {
applog(LOG_WARNING, "Thread %d still exists, killing it off", thr_id);
pthread_join(thr->pth, NULL);
cg_completion_timeout(&thr_info_cancel_join, thr, 5000);
thr->cgpu->drv->thread_shutdown(thr);
} else
applog(LOG_WARNING, "Thread %d no longer exists", thr_id);
Expand Down
16 changes: 2 additions & 14 deletions sgminer.c
Original file line number Diff line number Diff line change
Expand Up @@ -3310,7 +3310,7 @@ static void disable_curses(void)

static void kill_timeout(struct thr_info *thr)
{
cg_completion_timeout(&thr_info_cancel, thr, 1000);
cg_completion_timeout(&thr_info_cancel_join, thr, 1000);
}

static void kill_mining(void)
Expand All @@ -3322,21 +3322,9 @@ static void kill_mining(void)
/* Kill the mining threads*/
rd_lock(&mining_thr_lock);
for (i = 0; i < mining_threads; i++) {
pthread_t *pth = (pthread_t *) calloc(1, sizeof(pthread_t));

thr = mining_thr[i];
if (thr && PTH(thr) != 0L)
*pth = thr->pth;
thr_info_cancel(thr);
forcelog(LOG_DEBUG, "Waiting for thread %d to finish...", thr->id);
#ifndef WIN32
if (pth && *pth)
pthread_join(*pth, NULL);
#else
if (pth && pth->p)
pthread_join(*pth, NULL);
#endif
free(pth);
thr_info_cancel_join(thr);
}
rd_unlock(&mining_thr_lock);
}
Expand Down
3 changes: 2 additions & 1 deletion util.c
Original file line number Diff line number Diff line change
Expand Up @@ -825,13 +825,14 @@ int thr_info_create(struct thr_info *thr, pthread_attr_t *attr, void *(*start) (
return pthread_create(&thr->pth, attr, start, arg);
}

void thr_info_cancel(struct thr_info *thr)
void thr_info_cancel_join(struct thr_info *thr)
{
if (!thr)
return;

if (PTH(thr) != 0L) {
pthread_cancel(thr->pth);
pthread_join(thr->pth, NULL);
PTH(thr) = 0L;
}
cgsem_destroy(&thr->sem);
Expand Down
2 changes: 1 addition & 1 deletion util.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ struct pool;
enum dev_reason;
struct cgpu_info;
int thr_info_create(struct thr_info *thr, pthread_attr_t *attr, void *(*start) (void *), void *arg);
void thr_info_cancel(struct thr_info *thr);
void thr_info_cancel_join(struct thr_info *thr);
void cgtime(struct timeval *tv);
void subtime(struct timeval *a, struct timeval *b);
void addtime(struct timeval *a, struct timeval *b);
Expand Down