Multicore 64bit Linux version of Par2 now available !

Feel free to talk about anything and everything in this board.
Post Reply
Samushka
Release Testers
Release Testers
Posts: 20
Joined: March 31st, 2008, 12:33 pm

Multicore 64bit Linux version of Par2 now available !

Post 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 !
User avatar
sander
Release Testers
Release Testers
Posts: 8812
Joined: January 22nd, 2008, 2:22 pm

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

Post by sander »

Have you tested the speed improvement?

Can you run TBB-software on AMD-multi-cores?
Please don't send me unrequested PM's; the forum is the best way to communicate.
If someone helps you, please reply to that help.
f you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
vlad59
Newbie
Newbie
Posts: 8
Joined: August 5th, 2008, 9:46 am

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

Post 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.
Pinky and the Brain forever. Howtos about Lenny, XFCE, ...
User avatar
sander
Release Testers
Release Testers
Posts: 8812
Joined: January 22nd, 2008, 2:22 pm

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

Post 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$
Please don't send me unrequested PM's; the forum is the best way to communicate.
If someone helps you, please reply to that help.
f you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Samushka
Release Testers
Release Testers
Posts: 20
Joined: March 31st, 2008, 12:33 pm

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

Post 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.
User avatar
sander
Release Testers
Release Testers
Posts: 8812
Joined: January 22nd, 2008, 2:22 pm

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

Post 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.
Please don't send me unrequested PM's; the forum is the best way to communicate.
If someone helps you, please reply to that help.
f you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
frollic
Newbie
Newbie
Posts: 6
Joined: June 14th, 2012, 4:29 am

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

Post 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.
Post Reply