Skip to content

Fast method for estimating the Gridcoin magnitude for various CPU & GPU models

License

Notifications You must be signed in to change notification settings

nexus-prime/QuickMag

Repository files navigation

This code is now obsolete!

See QuickMag.jl for a working magnitude calculator: https://github.com/nexus-prime/QuickMag.jl

This code will remain here in case anyone needs examples for how to parse BOINC host.xml files using Bash.

There is an online version with limited features

CPU_QuickMag and GPU_QuickMag are methods for determining the approximate performance of a given CPU/GPU on all Gridcoin whitelisted projects. Requires: python. Optional: ripgrep (for faster execution)

Steps for running code:

bash UpdateDatabaseFiles.sh cpu

bash CPU_QuickMag.sh [CPUid] [#hosts] [output]

or

bash UpdateDatabaseFiles.sh gpu

bash GPU_QuickMag.sh [GPUid] [#hosts] [output]

Script details:


bash UpdateDatabaseFiles.sh [Project Type] [debug]

[Project Type]	:	Choose which project types to get data for (cpu/gpu/all)
[debug]		:	Can specify debug to enable progress bars

UpdateDatabaseFiles.sh downloads host and team data from the various BOINC projects on the Gridcoin whitlist and saves the needed data to the local computer.


bash CPU_QuickMag.sh [CPUid] [#hosts] [output]

[CPUid]		:	CPU id string e.g. 'i7-6700 ' (check CPUlist.data for more examples)

[#hosts]	: 	number of hosts to return data for

[output]	:	save output to file name (optional)

CPU_QuickMag.sh reads the host and team data files to find the magnitude of the top [#hosts] hosts using the specified CPU model. The data can be saved to a specified output file or printed to the terminal if [output] is not specified.


CPUlist.data

File contains the names of common CPU models formatted to work with CPU_QuickMag.sh Note that spaces need to be preserved, for example 'i7-6700' will return a mix of 'i7-6700 ' and 'i7-6700K'


bash GPU_QuickMag.sh [GPUid] [#hosts] [output]

[GPUid]		:	GPU id string e.g. 'GTX 1080 Ti|1|' (check GPUlist.data for more examples)

[#hosts]	: 	number of hosts to return data for

[output]	:	save output to file name (optional)

GPU_QuickMag.sh reads the host and team data files to find the magnitude of the top [#hosts] hosts using a single card of the specified GPU model. The data can be saved to a specified output file or printed to the terminal if [output] is not specified.


GPUlist.data

File contains the names of common GPU models formatted to work with GPU_QuickMag.sh For example 'GTX 1080 Ti|1|' or 'RX 580 Series|1|'

Dual GPU cards need to be followed by a 2 (since BOINC detects each GPU die as a separate GPU). e.g. 'TESLA K80|2|'. Due to the rarity of these cards, it is usually better to search for the single die version of the card and double the score.


Project name abbreviations:

CPU Projects:

	odlk1 		Odlk1

	srbase 		Srbase

	yafu 		Yafu

	tngrid 		Tn-grid

	numf 		Numberfields@home
	
	nfs 		Nfs@home

	universe 	Universe@home

	csg 		Citizen Science Grid

	cosmology 	Cosmology@home

	lhc		Lhc@home Classic

	rosetta  	Rosetta@home

	yoyo 		Yoyo@home

	wcg		World Community Grid 
	

GPU Projects:
	
	amicable 	Amicable Numbers
	
	collatz 	Collatz Conjecture
	
	einstein 	Einstein@home  	(No stats available - GDPR)
	
	milkyway 	Milkyway@home
	
	seti 		Seti@home
	
	gpug		GPUgrid
	
	asteroids 	Asteroids@home

About

Fast method for estimating the Gridcoin magnitude for various CPU & GPU models

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages