Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thread count option not shown on Arm based Mac version #172

Open
vmiyoshi opened this issue Apr 22, 2022 · 5 comments
Open

Thread count option not shown on Arm based Mac version #172

vmiyoshi opened this issue Apr 22, 2022 · 5 comments

Comments

@vmiyoshi
Copy link

vmiyoshi commented Apr 22, 2022

-t (Missing option)

Goku-104:bin jmurray$ par2 -h
Usage:
  par2 -h  : show this help
  par2 -V  : show version
  par2 -VV : show version and copyright

  par2 c(reate) [options] <PAR2 file> [files] : Create PAR2 files
  par2 v(erify) [options] <PAR2 file> [files] : Verify files using PAR2 file
  par2 r(epair) [options] <PAR2 file> [files] : Repair files using PAR2 files

You may also leave out the "c", "v", and "r" commands by using "par2create",
"par2verify", or "par2repair" instead.

Options: (all uses)
  -B<path> : Set the basepath to use as reference for the datafiles
  -v [-v]  : Be more verbose
  -q [-q]  : Be more quiet (-q -q gives silence)
  -m<n>    : Memory (in MB) to use
  --       : Treat all following arguments as filenames
Options: (verify or repair)
  -p       : Purge backup files and par files on successful recovery or
             when no recovery is needed
  -N       : Data skipping (find badly mispositioned data blocks)
  -S<n>    : Skip leaway (distance +/- from expected block position)
Options: (create)
  -a<file> : Set the main PAR2 archive name
  -b<n>    : Set the Block-Count
  -s<n>    : Set the Block-Size (don't use both -b and -s)
  -r<n>    : Level of redundancy (%%)
  -r<c><n> : Redundancy target size, <c>=g(iga),m(ega),k(ilo) bytes
  -c<n>    : Recovery Block-Count (don't use both -r and -c)
  -f<n>    : First Recovery-Block-Number
  -u       : Uniform recovery file sizes
  -l       : Limit size of recovery files (don't use both -u and -l)
  -n<n>    : Number of recovery files (don't use both -n and -l)
  -R       : Recurse into subdirectories
@animetosho
Copy link
Contributor

What version are you running and how was it built?

Threading requires par2cmdline to be compiled with OpenMP support.

@vmiyoshi
Copy link
Author

vmiyoshi commented Apr 22, 2022

What version are you running and how was it built?

Threading requires par2cmdline to be compiled with OpenMP support.

Thank you for replying to my message.
I installed llvm via homebrew to get OpenMP support

Goku-104:par2cmdline-master jmurray$ par2 -V
par2cmdline version 0.8.1

I installed both from source code, and homebrew, but it looks like it's compelled with out OpenMP support, on both ways.

@animetosho
Copy link
Contributor

Was par2cmdline compiled with OpenMP enabled?

@vmiyoshi
Copy link
Author

This is how I installed llvm -

brew install llvm
LDFLAGS="-L/opt/homebrew/opt/llvm/lib -Wl,-rpath,/opt/homebrew/opt/llvm/lib"
export LDFLAGS="-L/opt/homebrew/opt/llvm/lib"
export CPPFLAGS="-I/opt/homebrew/opt/llvm/include"

and par2cmdline based on what I saw in the Readme -

./automake.sh
./configure
make
make check
sudo make install

Let me know if I did something wrong.

@vmiyoshi
Copy link
Author

I think I got it
I had to use the -s, and --cc flags in homebrew

brew install par2 -s --cc llvm_clang

I see the flag now in par2cmdline

-t<n> : Number of threads used for main processing (10 detected)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants