Page 1 of 1

Multicore 64bit Linux version of Par2 now available !

Posted: October 8th, 2008, 4:40 am
by Samushka
Just wanted to give other Linux x64 users a heads up.

Direct Download:
http://www.chuchusoft.com/par2_tbb/par2 ... n64.tar.gz
GNU/Linux 64-bit x86_64 binary for kernel 2.6 / GCC 4 (command line only).

Author's Website:
http://www.chuchusoft.com/par2_tbb/download.html

Enjoy !

Re: Multicore 64bit Linux version of Par2 now available !

Posted: October 8th, 2008, 6:37 am
by sander
Have you tested the speed improvement?

Can you run TBB-software on AMD-multi-cores?

Re: Multicore 64bit Linux version of Par2 now available !

Posted: October 8th, 2008, 9:49 am
by vlad59
For information I tried the 32bits program on my Athlon 2200 (so one core) and the par2 produced had not the same md5sum as the reference par2 packaged by Debian.

I expected a little more speed with the MMX added lately.

Re: Multicore 64bit Linux version of Par2 now available !

Posted: October 10th, 2008, 4:03 pm
by sander
I doesn't work for me on Linux (Ubuntu 8.10 beta):

sander@ubuntu810:~/par2cmdline-0.4-tbb-20080919-lin64$ ./par2 --help
bash: ./par2: cannot execute binary file
sander@ubuntu810:~/par2cmdline-0.4-tbb-20080919-lin64$ ./par2
bash: ./par2: cannot execute binary file
sander@ubuntu810:~/par2cmdline-0.4-tbb-20080919-lin64$ uname -a
Linux ubuntu810 2.6.27-4-generic #1 SMP Wed Sep 24 01:30:51 UTC 2008 i686 GNU/Linux
sander@ubuntu810:~/par2cmdline-0.4-tbb-20080919-lin64$

Re: Multicore 64bit Linux version of Par2 now available !

Posted: October 12th, 2008, 7:50 am
by Samushka
sander wrote: I doesn't work for me on Linux (Ubuntu 8.10 beta):

sander@ubuntu810:~/par2cmdline-0.4-tbb-20080919-lin64$ ./par2 --help
bash: ./par2: cannot execute binary file
sander@ubuntu810:~/par2cmdline-0.4-tbb-20080919-lin64$ ./par2
bash: ./par2: cannot execute binary file
sander@ubuntu810:~/par2cmdline-0.4-tbb-20080919-lin64$ uname -a
Linux ubuntu810 2.6.27-4-generic #1 SMP Wed Sep 24 01:30:51 UTC 2008 i686 GNU/Linux
sander@ubuntu810:~/par2cmdline-0.4-tbb-20080919-lin64$
works for me under Ubuntu 8.04 x64 ... make sure you move ALL the files into your /usr/bin directory.

Re: Multicore 64bit Linux version of Par2 now available !

Posted: October 12th, 2008, 9:00 am
by sander
Samushka wrote:

works for me under Ubuntu 8.04 x64 ... make sure you move ALL the files into your /usr/bin directory.
Oops: I think I have tried it on my dual-core but only 32-bit system (Intel Core Duo, not Core 2 Duo).

Sorry. I will try it on my dual-core Athlon 64.

Thanks.

Re: Multicore 64bit Linux version of Par2 now available !

Posted: June 14th, 2012, 4:44 am
by frollic
Reviving this old thread for future reference when compiling multi core par2 binary in Linux (and perhaps other OSes).

When using an up to date C++ compiler (Aug 2011 or newer) you might end up with the error

par2cmdline.cpp: In function 'int main(int, char**)':
par2cmdline.cpp:88:3: error: 'auto_ptr' is not a member of 'std'
par2cmdline.cpp:88:28: error: expected primary-expression before '>' token
par2cmdline.cpp:88:57: error: 'commandline' was not declared in this scope

This is because auto_ptr is deprecated in the newest C++ standard - http://en.wikipedia.org/wiki/Auto_ptr

When checking the <memory> #include, I noticed there was a reference to auto_ptr

# if _GLIBCXX_USE_DEPRECATED
# include <backward/auto_ptr.h>
# endif

I ended up adding the line: #include <backward/auto_ptr.h> under the line #include "par2cmdline.h" in

par2cmdline.cpp
commandline.cpp
par2creator.cpp
par2repairer.cpp

afterwards the binary compiled fine.

Remember to do a "strip par2" of the binary after compiling, it will reduce the size from 4MB or so, down to approx 230KB.

When compiling in Fedora, I also had to install tbb and tbb-devel from the Fedora reposity.