biochem
vs even not care about, really niubility. However, it is really absurd of CMake command line without giving a debug trace
Misha
explain this happens when you run a build on windows?
Misha
does it run in visual studio?
biochem
I think, it is because, the configurationPreset with a typo mistake, was not the one I was working on or building, so visual studio ignore that preset, after all vs uses it own implements of prasing the presets json
biochem
but cmake.exe go through the json before invoking any others
biochem
In details, it is the problem about a configurationPreset inherit another configurationPreset which is not existed, because of a typo
Andre
#res
Ludovic 'Archivist'
Does anyone have a very modern CPU and run linux? I am looking to benchmark bcrypt to know what is adequate as a factor g++ -fpermissive -O3 -march=native bcrypt_benchmark.cpp The above command can be used to build. The code uses OpenBSD's implementation (cheerfully copied and edited)
Ludovic 'Archivist'
(don't wait until the entire thing has run, if it gives you more than 1'000'000 µs as output it is more than adequate to terminate it)
Ludovic 'Archivist'
> Very modern cpu Is it x86-64-v3 or x86-64-v4 ?
Anything from after 2021 would do for me
Ludovic 'Archivist'
(and with a big enough clock speed)
Mar!o
Does anyone have a very modern CPU and run linux? I am looking to benchmark bcrypt to know what is adequate as a factor g++ -fpermissive -O3 -march=native bcrypt_benchmark.cpp The above command can be used to build. The code uses OpenBSD's implementation (cheerfully copied and edited)
Is your test multithreaded I'm not sure if you're looking for single-core benchmarks but if not I can test it on my TR 3970x with 32 cores and 64 threads. It's from 2019 and is x86-64-v3 with AVX2, FMA3, BMI 2 etc.. Sadly it has no AVX512F Boost up to 4.5 GHz
Mar!o
It is single threaded
ok then nevermind
Mar!o
But if you can test it, it would be an improvement over my test on an old Xeon from the early 2010s
results: 9 | 23283µs 10 | 46287µs 11 | 92596µs 12 | 185359µs <terminated>
Mar!o
test system: OS: Linux Mint 21.1 x86_64 Kernel: 6.2.10-060210-generic Uptime: 53 mins Packages: 3032 (dpkg), 27 (flatpak) Shell: bash 5.1.16 Resolution: 3840x1200 DE: Cinnamon 5.6.8 WM: Mutter (Muffin) WM Theme: Mint-Y-Dark-Aqua (Mint-Y) Theme: Mint-Y-Dark-Aqua [GTK2/3] Icons: Mint-Y-Dark-Aqua [GTK2/3] Terminal: gnome-terminal CPU: AMD Ryzen Threadripper 3970X (64) @ 3.700GHz GPU: NVIDIA GeForce RTX 3080 Memory: 5.8GiB / 128.6GiB
Mar!o
I have 12th gen Intel Core i7 but the only Linux I have is WSL one
it's so sad Intel removed AVX512 form the newer chips can't wait to get an zen4 AMD CPU with AVX512 I want to use the massive 512-bit zmm registers :)
Mar!o
AVX-512 actually can be enabled if you disable efficiency cores in UEFI
that's nice but I don't know who had the idea to have some cores with AVX512 and some without of course any program will SIGILL if the kernel switches the executing EVEX vectorcode to a chip without support 🤡
Mar!o
ryzen 7xxx emulates avx512 with avx2 lol
Yes but the dual pumping approach is still great because we have 32 instead of 16 fpu registers So still a win when you have xmm16-xmm31 and ymm
Mar!o
avx512 is kinda not used in desktop apps
Yeah because the hardware support is poor When the most chips have avx512 we might see more apps using it Avx512 could be strong in games and emulators and scientific stuff Might not be that good with auto vectorization but we have intrinsics anyway
Vlad
To much of a hassle for the thing that won't be available for the 95% of users
Ludovic 'Archivist'
Mar!o
So 13 or 14 are likely the first decent values, thanks
No problem I can run it again tomorrow if you want until it reaches 20 What exactly do theses numbers measure?
Ludovic 'Archivist'
No problem I can run it again tomorrow if you want until it reaches 20 What exactly do theses numbers measure?
They give the time to operate bcrypt at the given strength, a decent "user" time should be >250ms, and a decent admin time should be around 1s. since the strength is logarithmic, it is relatively easy to extrapolate from your data already
amir mohammad
Hi dose anyone know about codevision I realy need help here
Dima
lol
Albatross
Hello everyone, I am seeking guidance on how to use the ENet C++ library. If anyone has a well-structured tutorial or sample code that they can share with me, I would greatly appreciate it. I am specifically interested in understanding how to initialize the library and use its functions effectively in my code.
Collins
Which resources can I use to C/C++ programming language
Albatross
Have you tried opening docs? https://github.com/zpl-c/enet
Hi, thank you for your reply. I've tried working with the enet library for my project several times, but I haven't been able to make it work yet. I downloaded version 1.3.17, but I'm not sure if it's the latest version or an older one. When I built the source code using CMake, the library lib file did not have the full source code with it, so when I tried using some functions, I encountered errors. I also tried downloading the latest the Github CMake file, but it didn't help, and I encountered errors while building that file as well. Can you please provide me with the download URL for the latest version of the enet library? This would be really helpful.
Albatross
hello I would like to know how to include SDL2 in my C++ project. I have downloaded the SDL2 development libraries (version 2.0.5) for Windows 64-bit, extracted them, and now have a SDL2.dll file. Can someone explain how to link this DLL file to my source code for testing purposes? Specifically, I have a main.cpp file and I would like to include the SDL2.dll file in it. Thank you
Olivia
Can someone explain about linked list 🧐? What if int a is in 2000 memory address what if we make a pointer like int *b then if it memory address get increased according to integrer like 2004
Anonymous
hello I would like to know how to include SDL2 in my C++ project. I have downloaded the SDL2 development libraries (version 2.0.5) for Windows 64-bit, extracted them, and now have a SDL2.dll file. Can someone explain how to link this DLL file to my source code for testing purposes? Specifically, I have a main.cpp file and I would like to include the SDL2.dll file in it. Thank you
You have to find where sdl2 header files are located first. You need them to compile your source files. Once you find the location of the header files, you have to pass a special flag to your compiler (depending on the compiler) to indicate this path. Now since you are using a dll, you also need to add a special flag to your linker to specify you need to link in a dynamic library and also specify the path to this dynamic library (this again depends on the compiler). Please look up your compiler documentation to find out more about such flags. Incase this post did not make sense to you at all, then I would suggest reading up on the compilation process before attempting to write code.
Sri
C tutorial ? Vedios are there ?
Sri
Are There Any C++ Sdl Or Opengl Tutorial Here ?
Sri
Please Pun Here Please
Guillermo
Are There Any C++ Sdl Or Opengl Tutorial Here ?
Look for The Cherno in YouTube. He has some videos about OpenGL and game engine development
Alexandr
Hi! I use clang + cmake and want to change MSVC STL to libc++. I already built libc++.lib from sources and i know that i can specify which stdlib use through compiler flag "-stdlib=libc++". So... seems like i also have to specify path to include/lib in CMakeLists. Am i right? Or there is some "standard" path where compiler try to find all stuff? I don't quit understand the process. Win OS
Robin
Hello
•‿•
Can you guide me how to start learning advance c++ and c# ?
Manav
Can you guide me how to start learning advance c++ and c# ?
If your from India learn from code help..I mean love babbar on youtube
Manav
Else The cherno
Antasya Dania
hi
Chat Boss
Antasya Dania sent a code, it has been re-uploaded as a file
Antasya Dania
can anyone help me why i cannot compile?
Antasya Dania
im not really sure what to add
Danya🔥
can anyone help me why i cannot compile?
Read the error messages and fix them
Antasya Dania
what does it mean but expected unqualified id?
Antasya Dania
by*
Guillermo
im not really sure what to add
Paste the error in pastebin, maybe someone can help you with it
Ashish
In How many days I can complete basic C programming ??
Danya🔥
I don't understand what's the point of asking such questions
Danya🔥
It doesn't make any sense whatsoever
Albatross
Hello, I need more information about including SDL in my code, which I am compiling using the Microsoft Visual Studio 2022 developer command prompt on a Microsoft Windows 64-bit system. I have downloaded the SDL source code, and I'm using the following line to include the "SDL.h" file: #include "SDL-release-2.26.5/include/SDL.h" However, I'm encountering the following error: LINK : fatal error LNK1561: entry point must be defined I don't understand why I'm getting this error since I have defined an int main(){} function in my file. When I comment out the SDL header file include, I don't get this error. Can anyone help me understand why this is happening?
Albatross
Hello everyone, I would like to ask for your insight regarding a concern I have about adding external libraries in C++. Unlike in Python where we can easily download and install a library by entering a "pip" command and simply import the file or module in our code, it seems to be much more difficult to do so in C++. Is there a simple way to download, install, and use new libraries in our C++ projects? I have noticed that the developers of these libraries often provide a CMake list file, but they can be unreliable and result in build errors. Even including the header file can cause a cascade of errors due to incorrect file paths. If anyone has experience with this issue or has any suggestions, please share your thoughts. Thank you for your time.
Robin
Is there any C++ doing ? Who wants to study along with me together online
Anonymous
Hello everyone, I would like to ask for your insight regarding a concern I have about adding external libraries in C++. Unlike in Python where we can easily download and install a library by entering a "pip" command and simply import the file or module in our code, it seems to be much more difficult to do so in C++. Is there a simple way to download, install, and use new libraries in our C++ projects? I have noticed that the developers of these libraries often provide a CMake list file, but they can be unreliable and result in build errors. Even including the header file can cause a cascade of errors due to incorrect file paths. If anyone has experience with this issue or has any suggestions, please share your thoughts. Thank you for your time.
CMake is more or less the industry standard now. So package maintainers will going forward ensure compatibility and error free builds. I have used it for a while now and not faced issues that I couldn't surmount. All major package distributions for C++ libraries like Conan, VCPkg can be used seamlessly with CMake. If you face issues, you could check the respective bug tracking site for the same. Odds are high that someone else would have faced the same issue and hence a solution might be readily available
ruki
xmake also support package manager.
Anonymous
Hello everyone, i am looking for help to create package file installer (.deb) or (. appImage) from source of my SDL projet ? Is there someone who can help me to achieve this please
Artur
Google cmake cpack
Artur
It has loads of examples
amir mohammad