forked from ocminer/sgminer-x16s
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Your Name
committed
Mar 28, 2018
0 parents
commit c328571
Showing
326 changed files
with
226,261 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
cgminer | ||
cgminer.exe | ||
minerd | ||
minerd.exe | ||
*.o | ||
*.lo | ||
*.bin | ||
|
||
autom4te.cache | ||
.deps | ||
|
||
Makefile | ||
Makefile.in | ||
INSTALL | ||
aclocal.m4 | ||
configure | ||
depcomp | ||
missing | ||
install-sh | ||
stamp-h1 | ||
cpuminer-config.h* | ||
compile | ||
config.log | ||
config.status | ||
config.guess | ||
config.sub | ||
|
||
mingw32-config.cache | ||
|
||
*~ | ||
|
||
ext_deps | ||
config.h.in | ||
config.h | ||
|
||
ccan/libccan.a | ||
lib/arg-nonnull.h | ||
lib/c++defs.h | ||
lib/libgnu.a | ||
lib/signal.h | ||
lib/string.h | ||
lib/stdint.h | ||
lib/warn-on-use.h | ||
|
||
mkinstalldirs | ||
|
||
*.swp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[submodule "jansson"] | ||
path = submodules/jansson | ||
url = https://github.com/akheron/jansson.git | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
adl_defines.h | ||
adl_sdk.h | ||
adl_structures.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Please insert AMD ADL files adl_defines.h adl_sdk.h adl_structures.h here. | ||
|
||
They can be found at | ||
http://developer.amd.com/tools-and-sdks/graphics-development/display-library-adl-sdk/ |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,166 @@ | ||
/* | ||
* | ||
* Copyright (C) Andrew Smith 2012-2013 | ||
* | ||
* Usage: java API command ip port | ||
* | ||
* If any are missing or blank they use the defaults: | ||
* | ||
* command = 'summary' | ||
* ip = '127.0.0.1' | ||
* port = '4028' | ||
* | ||
*/ | ||
|
||
import java.net.*; | ||
import java.io.*; | ||
|
||
class API | ||
{ | ||
static private final int MAXRECEIVESIZE = 65535; | ||
|
||
static private Socket socket = null; | ||
|
||
private void closeAll() throws Exception | ||
{ | ||
if (socket != null) | ||
{ | ||
socket.close(); | ||
socket = null; | ||
} | ||
} | ||
|
||
public void display(String result) throws Exception | ||
{ | ||
String value; | ||
String name; | ||
String[] sections = result.split("\\|", 0); | ||
|
||
for (int i = 0; i < sections.length; i++) | ||
{ | ||
if (sections[i].trim().length() > 0) | ||
{ | ||
String[] data = sections[i].split(",", 0); | ||
|
||
for (int j = 0; j < data.length; j++) | ||
{ | ||
String[] nameval = data[j].split("=", 2); | ||
|
||
if (j == 0) | ||
{ | ||
if (nameval.length > 1 | ||
&& Character.isDigit(nameval[1].charAt(0))) | ||
name = nameval[0] + nameval[1]; | ||
else | ||
name = nameval[0]; | ||
|
||
System.out.println("[" + name + "] =>"); | ||
System.out.println("("); | ||
} | ||
|
||
if (nameval.length > 1) | ||
{ | ||
name = nameval[0]; | ||
value = nameval[1]; | ||
} | ||
else | ||
{ | ||
name = "" + j; | ||
value = nameval[0]; | ||
} | ||
|
||
System.out.println(" ["+name+"] => "+value); | ||
} | ||
System.out.println(")"); | ||
} | ||
} | ||
} | ||
|
||
public void process(String cmd, InetAddress ip, int port) throws Exception | ||
{ | ||
StringBuffer sb = new StringBuffer(); | ||
char buf[] = new char[MAXRECEIVESIZE]; | ||
int len = 0; | ||
|
||
System.out.println("Attempting to send '"+cmd+"' to "+ip.getHostAddress()+":"+port); | ||
|
||
try | ||
{ | ||
socket = new Socket(ip, port); | ||
PrintStream ps = new PrintStream(socket.getOutputStream()); | ||
ps.print(cmd.toLowerCase().toCharArray()); | ||
ps.flush(); | ||
|
||
InputStreamReader isr = new InputStreamReader(socket.getInputStream()); | ||
while (0x80085 > 0) | ||
{ | ||
len = isr.read(buf, 0, MAXRECEIVESIZE); | ||
if (len < 1) | ||
break; | ||
sb.append(buf, 0, len); | ||
if (buf[len-1] == '\0') | ||
break; | ||
} | ||
|
||
closeAll(); | ||
} | ||
catch (IOException ioe) | ||
{ | ||
System.err.println(ioe.toString()); | ||
closeAll(); | ||
return; | ||
} | ||
|
||
String result = sb.toString(); | ||
|
||
System.out.println("Answer='"+result+"'"); | ||
|
||
display(result); | ||
} | ||
|
||
public API(String command, String _ip, String _port) throws Exception | ||
{ | ||
InetAddress ip; | ||
int port; | ||
|
||
try | ||
{ | ||
ip = InetAddress.getByName(_ip); | ||
} | ||
catch (UnknownHostException uhe) | ||
{ | ||
System.err.println("Unknown host " + _ip + ": " + uhe); | ||
return; | ||
} | ||
|
||
try | ||
{ | ||
port = Integer.parseInt(_port); | ||
} | ||
catch (NumberFormatException nfe) | ||
{ | ||
System.err.println("Invalid port " + _port + ": " + nfe); | ||
return; | ||
} | ||
|
||
process(command, ip, port); | ||
} | ||
|
||
public static void main(String[] params) throws Exception | ||
{ | ||
String command = "summary"; | ||
String ip = "127.0.0.1"; | ||
String port = "4028"; | ||
|
||
if (params.length > 0 && params[0].trim().length() > 0) | ||
command = params[0].trim(); | ||
|
||
if (params.length > 1 && params[1].trim().length() > 0) | ||
ip = params[1].trim(); | ||
|
||
if (params.length > 2 && params[2].trim().length() > 0) | ||
port = params[2].trim(); | ||
|
||
new API(command, ip, port); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Authors | ||
|
||
## Core | ||
|
||
* Jan Berdajs <mrbrdo at mrbrdo dot net> 15bULC8snaKAMeFb3xBmmhbWj1xyTmBUfm | ||
* Noel Maersk <veox at wemakethings dot net> 12jF1VExtmmMu8D36vo4Y4CYqLK5yCtLC4 | ||
* troky <troky2001 at yahoo dot com> 1DqHeJdVy4kQX1jHaaVxef9Bgii14pwEbg | ||
* Yann St.Arnaud <ystarnaud at gmail dot com> 1SLixz2vRvjdpzZTep4Tiqs82Jc28tc6J | ||
* lasybear <**FIXME**> | ||
* Luke Dashjr <luke-jr+cgminer @at@ utopios .dot. org> 1QATWksNFGeUJCWBrN4g6hGM178Lovm7Wh | ||
* Andrew Smith <kan0i {at} kano-kun [dot] net> 1Jjk2LmktEQKnv8r2cZ9MvLiZwZ9gxabKm | ||
|
||
|
||
## Core (history) | ||
|
||
* Con Kolivas <kernel [at] kolivas {dot} org> 15qSxP1SQcUX3o4nhkfdbgyoWEFMomJ4rZ | ||
* Martin Danielsen <kalroth {at} gmail _dot_ com> 1DNBcSEENBwDKrcTyTW61ezWhzsPy5imkn | ||
|
||
|
||
## Cross-platform support | ||
|
||
* MinGW (Windows native): Drogean <Drogean> | ||
* MinGW (Linux cross-compilation): Wolf` <wolf9466> | ||
* MinGW (Linux cross-compilation): tonobitc <tonobitc> | ||
* MSVS2010: troky <troky2001 at yahoo dot com> | ||
* Cygwin: Markus Peloquin <markuspeloquin> | ||
|
||
|
||
## OpenCL kernels | ||
|
||
**FIXME**: this section is outdated. | ||
|
||
All current kernels are based on `scrypt`, originally by Colin Percival, | ||
updated by many others. | ||
|
||
* alexkarnew/alexkarold: Alexey Karimov LMqRcHdwnZtTMH6c2kWoxSoKM5KySfaP5C | ||
* bufius: Bufius VvvmmkYHKGtdr97JLyyZuJ3Th5ayungnjk | ||
* ckolivas: Con Kolivas <kernel @at@ kolivas }dot{ org> 15qSxP1SQcUX3o4nhkfdbgyoWEFMomJ4rZ | ||
* psw: Pavel Semjanov LP6GRFvgoMxKA6AW4TVF668cNezEGZvEtr | ||
* zuikkis: Zuikkis LeXck7EYgxyjw13zNDxZFmmgmWffFvhmSh | ||
|
||
|
||
## Testing, bug fixes, improvements | ||
|
||
* Michael Fiano <mfiano> | ||
* Gabriel Devenyi <gdevenyi> | ||
* Benjamin Herrenschmidt <ozbenh> | ||
* Joe4782 <Joe4782> | ||
* gacheson <gacheson> | ||
* Drogean <Drogean> | ||
* Wolf` <wolf9466> | ||
* tonobitc <tonobitc> | ||
* Perry Huang <perryh> | ||
* Joseph Bruggeman <jbruggeman> | ||
* Badman74 <badman74> | ||
|
||
...and many others. See: | ||
|
||
* [sgminer-dev/sgminer](https://github.com/sgminer-dev/sgminer/graphs/contributors) | ||
|
||
## Legacy | ||
|
||
* Original CPU mining software: Jeff Garzik <jgarzik@pobox.com> | ||
|
||
## Sponsors and acknowledgments | ||
|
||
* nicehash.com - sponsored adding/merging many additional algorithms including X11 and Keccak, stratum extranonce |
Oops, something went wrong.