Skip to content

Commit

Permalink
Miner compatibility with Proxy v2.
Browse files Browse the repository at this point in the history
Updated miner to read from device-specific headerout files.
  • Loading branch information
max-sanchez committed Oct 22, 2016
1 parent b8c2675 commit 85cffab
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion kernel.cu
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,13 @@ void getHeaderForWork(uint8_t *header)
{
callInc = 0;
FILE *fr;
fr = fopen("headerout.txt", "rt");


char fileName[16] = "headeroutXX.txt";
fileName[9] = (deviceToUse / 10) + 48;
fileName[10] = (deviceToUse % 10) + 48;

fr = fopen(fileName, "rt");
fgets(hex, 352, fr);
hex[352] = '\0';

Expand Down

0 comments on commit 85cffab

Please sign in to comment.