Multicore 64bit Linux version of Par2 now available !

Feel free to talk about anything and everything in this board.

Multicore 64bit Linux version of Par2 now available !

Postby Samushka » October 8th, 2008, 4:40 am

Just wanted to give other Linux x64 users a heads up.

Direct Download:
http://www.chuchusoft.com/par2_tbb/par2cmdline-0.4-tbb-20080919-lin64.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 !
Samushka
Release Testers
Release Testers
 
Posts: 20
Joined: March 31st, 2008, 12:33 pm

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

Postby sander » October 8th, 2008, 6:37 am

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

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

Postby vlad59 » October 8th, 2008, 9:49 am

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, ...
vlad59
Newbie
Newbie
 
Posts: 8
Joined: August 5th, 2008, 9:46 am

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

Postby sander » October 10th, 2008, 4:03 pm

I doesn't work for me on Linux (Ubuntu 8.10 beta):

[email protected]:~/par2cmdline-0.4-tbb-20080919-lin64$ ./par2 --help
bash: ./par2: cannot execute binary file
[email protected]:~/par2cmdline-0.4-tbb-20080919-lin64$ ./par2
bash: ./par2: cannot execute binary file
[email protected]:~/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
[email protected]:~/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.
User avatar
sander
Release Testers
Release Testers
 
Posts: 5803
Joined: January 22nd, 2008, 2:22 pm

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

Postby Samushka » October 12th, 2008, 7:50 am

sander wrote:I doesn't work for me on Linux (Ubuntu 8.10 beta):

[email protected]:~/par2cmdline-0.4-tbb-20080919-lin64$ ./par2 --help
bash: ./par2: cannot execute binary file
[email protected]:~/par2cmdline-0.4-tbb-20080919-lin64$ ./par2
bash: ./par2: cannot execute binary file
[email protected]:~/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
[email protected]:~/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.
Samushka
Release Testers
Release Testers
 
Posts: 20
Joined: March 31st, 2008, 12:33 pm

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

Postby sander » October 12th, 2008, 9:00 am

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

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

Postby frollic » June 14th, 2012, 4:44 am

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.
frollic
Newbie
Newbie
 
Posts: 1
Joined: June 14th, 2012, 4:29 am


Return to General Discussion