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

How to compile Crc32TestMultithreaded? #17

Open
BlackMage2 opened this issue Nov 16, 2024 · 0 comments
Open

How to compile Crc32TestMultithreaded? #17

BlackMage2 opened this issue Nov 16, 2024 · 0 comments

Comments

@BlackMage2
Copy link

BlackMage2 commented Nov 16, 2024

How compile i Crc32TestMultithreaded.exe ? it exist not in the makefile. i have added

PROGRAM_MULTITHREADED = Crc32TestMultithreaded and OBJECTS_MULTITHREADED = Crc32.o Crc32TestMultithreaded.o and

$(PROGRAM_MULTITHREADED): $(OBJECTS_MULTITHREADED) Makefile
	$(CXX) $(OBJECTS_MULTITHREADED) $(FLAGS) $(LIBS) -o $(PROGRAM_MULTITHREADED)

to Makefile, and the program Crc32TestMultithreaded compiles successfull, but when i try to run the compiled program:

$ ./Crc32TestMultithreaded.exe Crc32TestMultithreaded.cpp
Please wait ...
terminate called after throwing an instance of 'std::invalid_argument'
  what():  stoi
Aborted

but Crc32Test doesn't work properly either, regardless of which file the hash 221F390F is calculated :

$ ./Crc32Test.exe Crc32TestMultithreaded.cpp
Please wait ...
bitwise          : CRC=221F390F, 12.978s, 78.900 MB/s
half-byte        : CRC=221F390F, 6.438s, 159.062 MB/s
tableless (byte) : CRC=221F390F, 6.917s, 148.046 MB/s
tableless (byte2): CRC=221F390F, 7.053s, 145.193 MB/s
  1 byte  at once: CRC=221F390F, 3.660s, 279.769 MB/s
  4 bytes at once: CRC=221F390F, 1.212s, 844.739 MB/s
  8 bytes at once: CRC=221F390F, 0.729s, 1404.725 MB/s
4x8 bytes at once: CRC=221F390F, 0.564s, 1816.854 MB/s
 16 bytes at once: CRC=221F390F, 0.447s, 2289.649 MB/s
 16 bytes at once: CRC=221F390F, 0.464s, 2208.657 MB/s (including prefetching)
    chunked      : CRC=221F390F, 0.448s, 2284.302 MB/s

my build system is win64, cygwin with g++ (gcc 12.4.0)

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

1 participant