Skip to content

Commit

Permalink
Fix activation LUT gen.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan McLeran committed Oct 12, 2023
1 parent 9660441 commit b7fa5bd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/activation/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ default :
# Make an output dir to hold the executable
mkdir -p ./output
# Build the application
g++ -g -Wall -O3 -o ./output/activationTableGenerator activationTableGenerator.cpp -I../../cpp/ -std=c++17 -lstdc++fs
g++ -g -Wall -o ./output/activationTableGenerator activationTableGenerator.cpp -I../../cpp/ -std=c++17 -lstdc++fs

# Remove all object files
clean:
Expand Down
7 changes: 5 additions & 2 deletions apps/activation/activationTableGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,14 @@ static double sigmoid(const double x)

static void writeFileCopyrightAndLicense(const string& path)
{
ifstream intelInFile("intel_copyright.txt");
ifstream myInFile("my_copyright.txt");
ifstream myInFile("../my_copyright.txt");
ifstream intelInFile("../intel_copyright.txt");
ofstream outFile(path);
char buffer[1024];

assert(myInFile.is_open());
assert(intelInFile.is_open());

while(!myInFile.eof())
{
myInFile.getline(buffer, 1024);
Expand Down
File renamed without changes.

0 comments on commit b7fa5bd

Please sign in to comment.