maxeler / Correlation

Correlation app
BSD 2-Clause "Simplified" License
4 stars 1 forks source link

make doesn't work out of the box #1

Open alixedi opened 9 years ago

alixedi commented 9 years ago

1) It assumes fabricate is installed:

Traceback (most recent call last):
    File "make", line 36, in <module>
        from fabricate import *
ImportError: No module named fabricate

2) Version mismatch

sliccompile /home/azaidi/Documents/Correlation/PLATFORMS/SIMULATION/Maxfiles/correlation/correlation.max  /home/azaidi/Documents/Correlation/PLATFORMS/SIMULATION/SAPI/correlation/correlation.o
Error: Version mismatch: sliccompile is v2014.2a; MAIA_SIM maxfile is v2014.1.1.
fabricate: 'sliccompile' exited with status 1

3) Assumes a directory that doesn't exist. Fials to create it anyway.

mkdir build
gcc -c src/correlationCpuCode.c -o build/correlationCpuCode.o -std=gnu99 -finstrument-functions -fopenmp -fPIC -W -Wall -I /network-raid/opt/maxcompiler-2015.1-post-ikon-merge/include/slic -I/home/azaidi/Documents/Correlation/PLATFORMS/SIMULATION/SAPI/correlation -Dparam_numTimesteps=param_numSteps -Dparam_numTimeseries=param_numVariables -Dinstream_in_data_pairs=instream_in_variable_pair -Dcorrelation_maxNumTimeseries=correlation_maxNumVariables
gcc build/correlationCpuCode.o /home/azaidi/Documents/Correlation/PLATFORMS/SIMULATION/SAPI/correlation/correlation.o -o build/correlation -fopenmp -L /network-raid/opt/maxcompiler-2015.1-post-ikon-merge/lib -lslic -L /network-raid/opt/maxeleros-2015.1-post-ikon-merge/maxeleros//lib -lmaxeleros -lpthread -lm -lrt
mkdir /home/azaidi/Documents/Correlation/PLATFORMS/SIMULATION/binaries/TopCorrelations
mkdir: cannot create directory `/home/azaidi/Documents/Correlation/PLATFORMS/SIMULATION/binaries/TopCorrelations': No such file or directory
fabricate: 'mkdir' exited with status 1

4) I created the directory myself, now it complains:

mkdir /home/azaidi/Documents/Correlation/PLATFORMS/SIMULATION/binaries/TopCorrelations
mkdir: cannot create directory `/home/azaidi/Documents/Correlation/PLATFORMS/SIMULATION/binaries/TopCorrelations': File exists
fabricate: 'mkdir' exited with status 1

@ntrifunovic

alixedi commented 9 years ago

It works when I:

$ mkdir /home/azaidi/Documents/Correlation/PLATFORMS/SIMULATION/binaries/

only.

:)

alex88bb commented 9 years ago

Thanks for this notice. I will fix these things. The only problem is bug 2). Should it just say: "version mismatch"?

alex88bb commented 9 years ago

It is probably going to be the same problem with Linear Regression, so I will take care of that as well :)

alixedi commented 9 years ago

Thanks! @alex88bb you are :zap:

alex88bb commented 9 years ago

@alixedi Ok, so this is what I did to fix these issues:

1) I added fabricate.py to each CPU project. I don't know if it is important, but maybe there should be only one fabricate.py file for all CPU (and later DFE) projects 2) Simply source /network-raid/opt/maxcompiler-2014.1.1/settings.sh and this will work. Should I compile it with the newest compiler? 3) and 4) are resolved by adding "-p" flag to mkdir.

Is this ok? If it is, I will do the same thing with Linear Regression.

alixedi commented 9 years ago

I think it is sufficient for now.

Thanks!

alex88bb commented 9 years ago

No worries ;) Tell me if you run into another issue with this app!