Giter Site home page Giter Site logo

fcc's Introduction

FCC

Welcome to the FCC project!

Fiuggi Compiler Collection (FCC) is a high-performance compiler based on LLVM.
Our first release, FCC v0.6.alpha1, provides profiling aided automatic parallelization with more optimization features comming soon.

This test suite contains the FCC binaries for x86 / arm and all other libraries required to compile a benchmark. The purpose of this test suite is mainly for people who are interested in the FCC compilation process to reproduce the results we have presented earlier. For people who would like to include FCC into their development toolchain, please kindly refer to the Cooperation section at the end of this readme file.


System v0.6.alpha1
Ubuntu 20.04.4 LTS x86 Build Status
Ubuntu 18.04.5 LTS aarch64 Build Status
Windows Build Status
MacOS Build Status

Installation

Install Dependencies

gcc==8.4.0
g++==8.4.0
expect==latest
sudo apt-get install expect

sudo apt-get install gcc-8
sudo apt-get install g++-8

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 100
sudo update-alternatives --config gcc

sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 100
sudo update-alternatives --config g++

Build

git clone -b x86 https://github.com/THeWakeSystems/fcc.git
# If you use arm machine
# git clone -b arm https://github.com/THeWakeSystems/fcc.git
make
source shrc

Getting Started

Build Benchmarks

  1. Cd to the source file directory of each benchmark.
#For Example
cd ./tests/benchmarks/2mm/src
  1. Source the corresponding execInfo. Each benchmark needs a "sourceable" file to determine the inputs for profiling and the actual run.
#For Example
source ../execInfo
  1. One step compilation
fcc <source_file> -p <output_file>
#For Example
fcc 2mm.c -p 2mm
  1. Run the binary
time NUM_WORKERS=<thread_number> <output_file> ${TESTARG}
#For Example
time NUM_WORKERS=4 ./2mm ${TESTARG}

The user needs to specify the number of threads to run.

Build Samples

  1. Cd to the source file directory of each sample.
#For Example
cd ./tests/samples/1
  1. One step compilation
export PROFILEARGS1=`pwd`/input.txt
fcc code.cpp -p <output_file>
#For Example
fcc code.cpp -p test
  1. Run the binary
time NUM_WORKERS=<thread_number> <output_file> < <input_file>
#For Example
time NUM_WORKERS=4 ./test < input.txt

The user needs to specify the number of threads to run.

Cooperation

Please be noted that our current FCC 0.6.alpha1 is still in the early stage. For anyone who is interested in FCC and would like to reproduce the results, please feel free to follow the instructions presented in the README file.

However, if your team would like to include FCC into your own development toolchain, may we courteously ask you to contact our product team at [email protected]. We will get back to you with more detailed information as soon as we receive your requst. We are happy to work with your team to fulfil your requests and, in the meanwhile, make our future versions successful releases.

fcc's People

Contributors

thewake-fcc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

fcc's Issues

arm 分支遇到 -bash: ./fcc-install/bin/fcc: cannot execute binary file: Exec format error

1.根据README.md指导make构建fcc工具链无异常, 在使用fcc 编译benchmark遇到Exec format error故障,请帮忙指导如何规避,谢谢!

  1. 使用fcc 编译benchmark操作记录
    liuqintao@DESKTOP-183U0SC:/workspace/fcc$ source shrc
    liuqintao@DESKTOP-183U0SC:
    /workspace/fcc$ cd ./tests/benchmarks/2mm/src
    liuqintao@DESKTOP-183U0SC:/workspace/fcc/tests/benchmarks/2mm/src$ source ../execInfo
    liuqintao@DESKTOP-183U0SC:
    /workspace/fcc/tests/benchmarks/2mm/src$ fcc 2mm.c -p 2mm
    -bash: /home/liuqintao/workspace/fcc/./fcc-install/bin/fcc: cannot execute binary file: Exec format error
    liuqintao@DESKTOP-183U0SC:/workspace/fcc/tests/benchmarks/2mm/src$ which fcc
    /home/liuqintao/workspace/fcc/./fcc-install/bin/fcc
    liuqintao@DESKTOP-183U0SC:
    /workspace/fcc/tests/benchmarks/2mm/src$ fcc -v
    -bash: /home/liuqintao/workspace/fcc/./fcc-install/bin/fcc: cannot execute binary file: Exec format error
    liuqintao@DESKTOP-183U0SC:/workspace/fcc/tests/benchmarks/2mm/src$ clang -v
    clang version 9.0.1
    Target: x86_64-unknown-linux-gnu
    Thread model: posix
    InstalledDir: /home/liuqintao/workspace/fcc/./llvm-install/bin
    Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/9
    Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/9
    Candidate multilib: .;@m64
    Selected multilib: .;@m64
    liuqintao@DESKTOP-183U0SC:
    /workspace/fcc/tests/benchmarks/2mm/src$ gcc -v
    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper
    OFFLOAD_TARGET_NAMES=nvptx-none:hsa
    OFFLOAD_TARGET_DEFAULT=1
    Target: x86_64-linux-gnu
    Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.4.0-1ubuntu120.04.1' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-9-Av3uEd/gcc-9-9.4.0/debian/tmp-nvptx/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
    Thread model: posix
    gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1
    20.04.1)
    liuqintao@DESKTOP-183U0SC:/workspace/fcc/tests/benchmarks/2mm/src$ g++ -v
    Using built-in specs.
    COLLECT_GCC=g++
    COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper
    OFFLOAD_TARGET_NAMES=nvptx-none:hsa
    OFFLOAD_TARGET_DEFAULT=1
    Target: x86_64-linux-gnu
    Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.4.0-1ubuntu1
    20.04.1' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-9-Av3uEd/gcc-9-9.4.0/debian/tmp-nvptx/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
    Thread model: posix
    gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)

  2. PC信息:
    image

  3. linux系统使用Win10内置Linux系统(Ubuntu) 20.04.4
    image

arm 分支遇到 -bash: ./fcc-install/bin/fcc: cannot execute binary file: Exec format error

1.arm 分支遇到 Exec format error故障
根据README.md指导make构建fcc工具链无异常, 在使用fcc 编译benchmark遇到Exec format error故障,请帮忙指导如何规避,谢谢!

2. 使用fcc 编译benchmark操作记录
liuqintao@DESKTOP-183U0SC:~ /workspace/fcc$ source shrc
liuqintao@DESKTOP-183U0SC:~ /workspace/fcc$ cd ./tests/benchmarks/2mm/src
liuqintao@DESKTOP-183U0SC:~ /workspace/fcc/tests/benchmarks/2mm/src$ source ../execInfo
liuqintao@DESKTOP-183U0SC:~ /workspace/fcc/tests/benchmarks/2mm/src$ fcc 2mm.c -p 2mm
-bash: /home/liuqintao/workspace/fcc/./fcc-install/bin/fcc: cannot execute binary file: Exec format error
liuqintao@DESKTOP-183U0SC:~ /workspace/fcc/tests/benchmarks/2mm/src$ which fcc
/home/liuqintao/workspace/fcc/./fcc-install/bin/fcc
liuqintao@DESKTOP-183U0SC:~ /workspace/fcc/tests/benchmarks/2mm/src$ fcc -v
-bash: /home/liuqintao/workspace/fcc/./fcc-install/bin/fcc: cannot execute binary file: Exec format error
liuqintao@DESKTOP-183U0SC:~ /workspace/fcc/tests/benchmarks/2mm/src$ clang -v
clang version 9.0.1
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/liuqintao/workspace/fcc/./llvm-install/bin
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/9
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/9
Candidate multilib: .;@m64
Selected multilib: .;@m64
liuqintao@DESKTOP-183U0SC:~ /workspace/fcc/tests/benchmarks/2mm/src$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:hsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.4.0-1ubuntu1~ 20.04.1' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-9-Av3uEd/gcc-9-9.4.0/debian/tmp-nvptx/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~ 20.04.1)
liuqintao@DESKTOP-183U0SC:~ /workspace/fcc/tests/benchmarks/2mm/src$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:hsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.4.0-1ubuntu1~ 20.04.1' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-9-Av3uEd/gcc-9-9.4.0/debian/tmp-nvptx/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~ 20.04.1)

3. PC信息:
image

4. linux系统使用Win10内置Linux系统(Ubuntu) 20.04.4
image

x86测试:benchmark/blackscholes测试执行失败

按照readme执行benchmark目录下示例测试,报错
环境:

liuyaning@ubuntu:~/workspace/fcc/tests/benchmarks/blackscholes$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 8.4.0-3ubuntu2' --with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-8 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 8.4.0 (Ubuntu 8.4.0-3ubuntu2)
liuyaning@ubuntu:~/workspace/fcc/tests/benchmarks/blackscholes$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 8.4.0-3ubuntu2' --with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-8 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 8.4.0 (Ubuntu 8.4.0-3ubuntu2)

编译构建:

liuyaning@ubuntu:~/workspace/fcc/tests/benchmarks/blackscholes/src$ fcc blackscholes.cpp -p blackscholes
Linking source files...
blackscholes.cpp:449:34: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
    printf("Size of data: %d\n", numOptions * (sizeof(OptionData) + sizeof(int)));
                          ~~     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                          %lu
1 warning generated.
Generating Edge Profile...
Generating Loop Profile...
Generating Lamp Profile...
Generating Spec Profile...
This profile might be incomplete: calling llvm.lifetime.start.p0i8 may introduce new AUs (see lib/PointsToProfiler/RecognizedExternalFunctions.h)
This profile might be incomplete: calling llvm.lifetime.end.p0i8 may introduce new AUs (see lib/PointsToProfiler/RecognizedExternalFunctions.h)
Generating Binary...
Compilation Success
liuyaning@ubuntu:~/workspace/fcc/tests/benchmarks/blackscholes/src$ time NUM_WORKERS=4 ./blackscholes ${TESTARG}
PARSEC Benchmark Suite
Num of Options: 65536
Num of Runs: 100
Size of data: 2621440
Misspeculation detected at iteration 1 by worker 1
Misspeculation detected at iteration 2 by worker 2
Misspeculation detected at iteration 0 by worker 0
Misspeculation detected at iteration 3 by worker 3
Reason: Segfault
Reason: Segfault
Reason: Segfault
Worker 2: Misspeculated somewhere
Worker 0: Misspeculated somewhere
Worker 3: Misspeculated somewhere
Reason: Segfault
Worker 1: Misspeculated somewhere
Recovery finished.  should resume from 2
Misspeculation detected at iteration 5 by worker 1
Misspeculation detected at iteration 3 by worker 3
Misspeculation detected at iteration 2 by worker 2
Reason: Segfault
Misspeculation detected at iteration 4 by worker 0
Worker 3: Misspeculated somewhere
Reason: Segfault
Reason: Segfault
Worker 2: Misspeculated somewhere
Worker 0: Misspeculated somewhere
Reason: Segfault
Worker 1: Misspeculated somewhere
Recovery finished.  should resume from 6
Misspeculation detected at iteration 6 by worker 2
Reason: Segfault
Worker 2: Misspeculated somewhere
Misspeculation detected at iteration 9 by worker 1
Reason: Segfault
Misspeculation detected at iteration 8 by worker 0
Misspeculation detected at iteration 7 by worker 3
Worker 1: Misspeculated somewhere
Reason: Segfault
Reason: Segfault
Worker 0: Misspeculated somewhere
Worker 3: Misspeculated somewhere
Recovery finished.  should resume from 8
Misspeculation detected at iteration 9 by worker 1
Misspeculation detected at iteration 11 by worker 3
Misspeculation detected at iteration 8 by worker 0
Reason: Segfault
Worker 0: Misspeculated somewhere
Reason: Segfault
Misspeculation detected at iteration 10 by worker 2
Reason: Segfault
Reason: Segfault
Worker 1: Misspeculated somewhere
Worker 2: Misspeculated somewhere
Worker 3: Misspeculated somewhere
Recovery finished.  should resume from 11
Misspeculation detected at iteration 13 by worker 1
Misspeculation detected at iteration 11 by worker 3
Misspeculation detected at iteration 14 by worker 2
Reason: Segfault
Misspeculation detected at iteration 12 by worker 0
Reason: Segfault
Worker 3: Misspeculated somewhere
Worker 2: Misspeculated somewhere
Reason: Segfault
Worker 0: Misspeculated somewhere
Reason: Segfault
Worker 1: Misspeculated somewhere
Recovery finished.  should resume from 14
Misspeculation detected at iteration 14 by worker 2
Misspeculation detected at iteration 16 by worker 0
Misspeculation detected at iteration 15 by worker 3
Reason: Segfault
Reason: Segfault
Misspeculation detected at iteration 17 by worker 1
Reason: Segfault
Worker 2: Misspeculated somewhere
Worker 3: Misspeculated somewhere
Worker 0: Misspeculated somewhere
Reason: Segfault
Worker 1: Misspeculated somewhere
Recovery finished.  should resume from 18
Misspeculation detected at iteration 20 by worker 0
Misspeculation detected at iteration 18 by worker 2
Misspeculation detected at iteration 21 by worker 1
Misspeculation detected at iteration 19 by worker 3
Reason: Segfault
Reason: Segfault
Reason: Segfault
Reason: Segfault
Worker 2: Misspeculated somewhere
Worker 3: Misspeculated somewhere
Worker 0: Misspeculated somewhere
Worker 1: Misspeculated somewhere
Recovery finished.  should resume from 22
Misspeculation detected at iteration 22 by worker 2
Misspeculation detected at iteration 24 by worker 0
Misspeculation detected at iteration 23 by worker 3
Reason: Segfault
Reason: Segfault
Reason: Segfault
Worker 2: Misspeculated somewhere
Worker 3: Misspeculated somewhere
Worker 0: Misspeculated somewhere
Worker 1: Misspeculated by other worker?!?!
^C
real    0m1.417s
user    0m0.230s
sys     0m0.038s

做出的修改:
原版execinfo执行报错

liuyaning@ubuntu:~/workspace/fcc/tests/benchmarks/blackscholes$ source execInfo
-bash: export: `/home/liuyaning/workspace/fcc/tests/benchmarks/blackscholes/inputs/train/in_3K.txt': not a valid identifier
-bash: export: `/home/liuyaning/workspace/fcc/tests/benchmarks/blackscholes/outputs/train/out_3K.txt': not a valid identifier
-bash: export: `/home/liuyaning/workspace/fcc/tests/benchmarks/blackscholes/inputs/test/in_64K.txt': not a valid identifier
-bash: export: `/home/liuyaning/workspace/fcc/tests/benchmarks/blackscholes/outputs/test/out_64K.txt': not a valid identifier

修改了execinfo:

base_dir=`pwd`
export PROFILEARGS="1 ${base_dir}/inputs/train/in_3K.txt ${base_dir}/outputs/train/out_3K.txt"
export TESTARG="1 ${base_dir}/inputs/test/in_64K.txt ${base_dir}/outputs/test/out_64K.txt"

test/samples测试用例编译报错

在进行test/samples测试时,出现了部分无法编译成功的现象,报错基本都是找不到文件,例 14
,21,41,6,91

~/workspace/fcc/tests/samples/14 ~/workspace/fcc/tests/samples
Linking source files...
Generating Edge Profile...
Generating Loop Profile...
Generating Lamp Profile...
Generating Spec Profile...
This profile might be incomplete: calling llvm.lifetime.start.p0i8 may introduce new AUs (see lib/PointsToProfiler/RecognizedExternalFunctions.h)
This profile might be incomplete: calling llvm.lifetime.end.p0i8 may introduce new AUs (see lib/PointsToProfiler/RecognizedExternalFunctions.h)
This profile might be incomplete: calling _ZSt20__throw_length_errorPKc may introduce new AUs (see lib/PointsToProfiler/RecognizedExternalFunctions.h)
This profile might be incomplete: calling _ZSt17__throw_bad_allocv may introduce new AUs (see lib/PointsToProfiler/RecognizedExternalFunctions.h)
cp: cannot stat 'result.specpriv.profile.txt': No such file or directory
Generating Binary...
opt: benchmark.collaborative-pipeline-nopeep.bc: error: Could not open input file: No such file or directory
~/workspace/fcc/tests/samples/21 ~/workspace/fcc/tests/samples
Linking source files...
Generating Edge Profile...
Generating Loop Profile...
Generating Lamp Profile...
Generating Spec Profile...
This profile might be incomplete: calling llvm.lifetime.start.p0i8 may introduce new AUs (see lib/PointsToProfiler/RecognizedExternalFunctions.h)
This profile might be incomplete: calling llvm.lifetime.end.p0i8 may introduce new AUs (see lib/PointsToProfiler/RecognizedExternalFunctions.h)
This profile might be incomplete: calling _ZNSi10_M_extractIxEERSiRT_ may introduce new AUs (see lib/PointsToProfiler/RecognizedExternalFunctions.h)
This profile might be incomplete: calling _ZNSo9_M_insertIxEERSoT_ may introduce new AUs (see lib/PointsToProfiler/RecognizedExternalFunctions.h)
This profile might be incomplete: calling __cxa_rethrow may introduce new AUs (see lib/PointsToProfiler/RecognizedExternalFunctions.h)
This profile might be incomplete: calling __cxa_end_catch may introduce new AUs (see lib/PointsToProfiler/RecognizedExternalFunctions.h)
This profile might be incomplete: calling _ZSt17__throw_bad_allocv may introduce new AUs (see lib/PointsToProfiler/RecognizedExternalFunctions.h)
This profile might be incomplete: calling _ZSt20__throw_length_errorPKc may introduce new AUs (see lib/PointsToProfiler/RecognizedExternalFunctions.h)
cp: cannot stat 'result.specpriv.profile.txt': No such file or directory
Generating Binary...
opt: benchmark.collaborative-pipeline-nopeep.bc: error: Could not open input file: No such file or directory
~/workspace/fcc/tests/samples/41 ~/workspace/fcc/tests/samples
Linking source files...
Generating Edge Profile...
Generating Loop Profile...
Generating Lamp Profile...
Generating Spec Profile...
This profile might be incomplete: calling llvm.lifetime.start.p0i8 may introduce new AUs (see lib/PointsToProfiler/RecognizedExternalFunctions.h)
This profile might be incomplete: calling llvm.lifetime.end.p0i8 may introduce new AUs (see lib/PointsToProfiler/RecognizedExternalFunctions.h)
This profile might be incomplete: calling _ZSt20__throw_length_errorPKc may introduce new AUs (see lib/PointsToProfiler/RecognizedExternalFunctions.h)
This profile might be incomplete: calling _ZSt17__throw_bad_allocv may introduce new AUs (see lib/PointsToProfiler/RecognizedExternalFunctions.h)
This profile might be incomplete: calling _ZNSo9_M_insertIxEERSoT_ may introduce new AUs (see lib/PointsToProfiler/RecognizedExternalFunctions.h)
This profile might be incomplete: calling _ZNSo5flushEv may introduce new AUs (see lib/PointsToProfiler/RecognizedExternalFunctions.h)
This profile might be incomplete: calling _ZSt16__throw_bad_castv may introduce new AUs (see lib/PointsToProfiler/RecognizedExternalFunctions.h)
This profile might be incomplete: calling _ZNKSt5ctypeIcE13_M_widen_initEv may introduce new AUs (see lib/PointsToProfiler/RecognizedExternalFunctions.h)
cp: cannot stat 'result.specpriv.profile.txt': No such file or directory
Generating Binary...
opt: benchmark.collaborative-pipeline-nopeep.bc: error: Could not open input file: No such file or directory

关于arm架构的测试,请给出指导

请给出在arm架构机器测试上的指导文档,是需要在arm架构的服务器上进行fcc编译测试,还是可以在x86编译后放到arm设备上进行测试?如可以交叉编译,烦请更新readme给出安装步骤

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.