![]() |
![]() |
#1 |
"Dylan"
Mar 2017
10010110012 Posts |
![]()
This thread is intended to serve as reference material for the status of PKGBUILDS for software used by the various people on the forum. It is particularly useful for those that run Arch or derivatives, or for those that want to package the software onto a different Linux distribution, so people can use it without having to worry about compilation.
Table of contents: 1. Introduction (this post) GIMPS related: 2. mprime (https://mersenneforum.org/showpost.p...07&postcount=2) 3. mlucas (https://mersenneforum.org/showpost.p...09&postcount=3) 4. gpuowl (https://mersenneforum.org/showpost.p...96&postcount=4) 5. mfaktc (https://mersenneforum.org/showpost.p...98&postcount=5) 6. mfakto 7. cudapm1 8. CUDALucas Prime finding (general stuff): 9. LLR 10. pfgw64 11. mtsieve 12. srsieve (sr1, sr2, sr5) 13. etc tbd Last fiddled with by Dylan14 on 2021-01-19 at 23:42 Reason: add links |
![]() |
![]() |
#2 |
"Dylan"
Mar 2017
601 Posts |
![]()
There are two packages for this program, both maintained by the AUR user graysky: mprime and mprime-bin. Both packages are on the latest stable build, which at the time of posting is 30.3b6.
The first package, mprime builds the program from scratch, which includes building the gwnum library (but it does not include it as part of the compiled package itself, which would be useful for those who want to build llr or pfgw from source). Included in the package is a patch file which basically fixes the make flags so that the program can successfully compile. A downside to this is that the version of mprime built can't communicate with the work server, as to protect against fake result submission from modified clients. The second package, mprime-bin, is the precompiled version of the program, which is available on the main mersenne.org site. This can communicate with the work server. It's recommended to choose a directory to run mprime, or to set the appropriate options in the config files to ensure proper operation. |
![]() |
![]() |
#3 |
"Dylan"
Mar 2017
60110 Posts |
![]()
There is a package for this program, developed by me here. The program does not require any dependencies (outside of the standard ones in the base-devel group, which is needed to build stuff in the AUR).
The PKGBUILD for this program follows the same procedure recommended by Ernst to build the package from source. First, it checks /proc/cpuinfo to see what instructions the program supports (SSE2, AVX, AVX2, AVX512, and SIMD for ARM chips), and then compiles the code. Next, it checks if there are any errors by grepping build.log for error. If no such instances exist then it proceeds with linking and package the resulting executable up. To get the program to compile properly, a patch is needed: sysctl-missing.patch, which is needed since sysctl.h is not included in version 5.5+ of the Linux Kernel. In version 19 of the program, an additional patch was needed. This was to get rid of a reference to the fp pointer in the file Mlucas.c. Leaving it in there would cause the linker to complain. This has since been corrected in version 19.1, and therefore this patch is no longer needed. Last fiddled with by Dylan14 on 2021-02-15 at 20:46 Reason: update to reflect v19.1 |
![]() |
![]() |
#4 |
"Dylan"
Mar 2017
25916 Posts |
![]()
There is a package for this program, developed by me here. This program requires two dependencies: gmp and ocl-icd (both of which are available on the main Arch repos).
The file uses the stable tag version of the program and not the latest git commit. Otherwise, it is a straightforward build process. A git version of this package could also be developed, however, this would require several changes to the PKGBUILD. Namely, the source would have to change from the current archive link to git+https://github.com/preda/gpuowl, checksums would have to be skipped, a pkgver() function would be needed to get the correct version, and possibly other changes. Also, I am not sure if the current git version is that much different from the stable 7.2 version. |
![]() |
![]() |
#5 |
"Dylan"
Mar 2017
60110 Posts |
![]()
There is a package for this program, developed by me here. This requires two dependencies: nvidia (the NVIDIA driver) and cuda (CUDA build environment), for the building of the program.
There is a patch needed to make the program build with the correct CC versions. This is contained in the file makeandparams.patch. The current version of CUDA at the time of this post (11.2) supports CC's 3.5-8.6. As new versions come out the NVCCFLAGS included in this patch file will need to be updated. Also, the location of the CUDA toolkit has to be specified to be /opt/cuda/, instead of /usr/local/cuda/. In addition, I changed the params.h file to allow the GPU_SIEVE_SIZE to go up to 2047. Also provided is a default mfaktc.ini file, which is installed to /etc/mfaktc/mfaktc.ini. The user is advised to copy this into the directory in which he wants to run mfaktc in. On occasion, a maximum CUDA version has to be specified since the driver may lag behind the CUDA toolkit. When this happens the user has 2 options: 1. Either downgrade CUDA and add cuda to the IgnorePkg line in /etc/pacman.conf until the driver catches up, or 2. Install the nvidia-beta driver from the AUR. |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Reference material discussion thread | kriesel | kriesel | 100 | 2023-06-24 07:00 |
new participant reference | kriesel | kriesel | 12 | 2023-05-21 15:58 |
Google Colaboratory reference thread | kriesel | kriesel | 22 | 2023-01-16 15:38 |
Mlucas-specific reference thread | kriesel | kriesel | 20 | 2021-11-18 19:22 |
NFS reference | Jushi | Math | 2 | 2006-08-28 12:07 |