bamos / parsec-benchmark

An unofficial mirror of the core PARSEC 3.0 benchmark suite with patches to run on x86_64 Arch Linux and generalize builds.
Other
97 stars 38 forks source link

The error when building ferret #6

Open wzx0422 opened 1 year ago

wzx0422 commented 1 year ago

When I use the command "parsecmgmt -a run -p ferret", I get the error: "HUGE" undeclared. THE details are as follows: ../parsec-3.0/pkgs/apps/ferret/obj/amd64-linux.gcc-pthreads/src/lsh/LSH_query.c:201:38: error: ‘HUGE’ undeclared (first use in this function)

zahrayousefijamarani commented 1 year ago

HUGE should be replaced to DBL_MAX. Replace all HUGEs in ferret source code to DBL_MAX.

grep -rl "HUGE" pkgs/apps/ferret | xargs sed -i "s/HUGE/DBL_MAX/g"
grep -rl "HUGE" pkgs/netapps/netferret | xargs sed -i "s/HUGE/DBL_MAX/g"
tandonmitul27 commented 1 month ago

It worked, Thanks!