Fórum | MyPower.CZ | Obnovitelné zdroje energie - energetická soběstačnost | Právě je čtv úno 21, 2019 2:32 am
gpg --verify hashes.txt
gpg --keyid-format long --with-fingerprint fluffypony.asc
gpg --import fluffypony.asc
shasum -a 256 /home/kiwi/monero-gui-linux-x64-v0.12.3.0.tar.bz2
const fs = require("fs");
const vbios = require("./lib/vbios.js");
// Just what the script should do.
const DUMP = true;
const OVERWRITE = true;
const CARD_ID = 1;
const CARD_PP = `/sys/class/drm/card${CARD_ID}/device/pp_table`;
const buf = fs.readFileSync(CARD_PP);
// Decompose `buf` into a JS object:
const obj = vbios.$readObject({ buffer: buf, type: vbios.PowerPlayTable });
// Now, if everything went ok we will have an object describing the
// whole PP table. You can do whatever you want with it, including
// dumping its content, modifying it, etc.
if (DUMP)
console.log(JSON.stringify(obj, null, 2));
// If you want to modify it, you can simply change the fields it
// provides. For example to change max TDP, which is stored in
// PowerTuneTable (subtable), do the following:
//RX 560
obj.FanTable.THigh = 8000;
obj.FanTable.TMed = 5000;
obj.FanTable.TargetTemperature = 50;
obj.PowerTuneTable.TDP = 65;
//obj.MemClockDependencyTable.Entries [2].MemClock = 204000;
obj.SocClockDependencyTable.Entries [5].SocClock = 132000;
obj.SocClockDependencyTable.Entries [6].SocClock = 132000;
obj.SocClockDependencyTable.Entries [7].SocClock = 132000;
obj.VddcLookupTable.Entries [4].Vdd = 865;
obj.VddcLookupTable.Entries [5].Vdd = 865;
obj.VddcLookupTable.Entries [6].Vdd = 865;
obj.MemClockDependencyTable.Entries [2].Mvdd = 905;
obj.MemClockDependencyTable.Entries [2].MemClock = 190000;
//RX 580
//obj.PowerTuneTable.TDP = 145;
//obj.PowerTuneTable.MaximumPowerDeliveryLimit = 145;
//obj.PowerTuneTable.SmallPowerLimit = 145;
//obj.PowerTuneTable.SoftwareShutdownTemp = 90;
//obj.FanTable.THigh = 8000;
//obj.FanTable.TMed = 5000;
//obj.FanTable.TargetTemperature = 55;
//obj.FanTable.FanRPMMax = 2600;
//obj.FanTableTMax = 10000;
//obj.MemClockDependencyTable.Entries [2].MemClock = 200000;
//obj.MemClockDependencyTable.Entries [2].Mvdd = 955;
//obj.SocClockDependencyTable.Entries [5].SocClock = 118000;
//obj.SocClockDependencyTable.Entries [6].SocClock = 121000;
//obj.SocClockDependencyTable.Entries [7].SocClock = 130000;
//obj.VddcLookupTable.Entries [13].Vdd = 935;
//obj.VddcLookupTable.Entries [14].Vdd = 935;
//obj.VddcLookupTable.Entries [15].Vdd = 935;
// We modified the JS object and the data was not been synced with
// the original buffer yet. To save all values back to the buffer
// you have to call `$updateObject()`:
vbios.$updateObject({ buffer: buf, object: obj });
// Now the `buf` contains new changed data, the only thing to do
// next is to write it back.
if (OVERWRITE)
fs.writeFileSync(CARD_PP, buf);
/*
* GPU configuration. You should play around with intensity and worksize as the fastest settings will vary.
* index - GPU index number usually starts from 0
* intensity - Number of parallel GPU threads (nothing to do with CPU threads)
* worksize - Number of local GPU threads (nothing to do with CPU threads)
* affine_to_cpu - This will affine the thread to a CPU. This can make a GPU miner play along nicer with a CPU miner.
* strided_index - switch memory pattern used for the scratch pad memory
* 2 = chunked memory, chunk size is controlled by 'mem_chunk'
* required: intensity must be a multiple of worksize
* 1 or true = use 16byte contiguous memory per thread, the next memory block has offset of intensity blocks
* 0 or false = use a contiguous block of memory per thread
* mem_chunk - range 0 to 18: set the number of elements (16byte) per chunk
* this value is only used if 'strided_index' == 2
* element count is computed with the equation: 2 to the power of 'mem_chunk' e.g. 4 means a chunk of 16 elements(256byte)
* comp_mode - Compatibility enable/disable the automatic guard around compute kernel which allows
* to use a intensity which is not the multiple of the worksize.
* If you set false and the intensity is not multiple of the worksize the miner can crash:
* in this case set the intensity to a multiple of the worksize or activate comp_mode.
* "gpu_threads_conf" :
* [
* { "index" : 0, "intensity" : 1000, "worksize" : 8, "affine_to_cpu" : false, "strided_index" : true, "mem_chunk" : 2, "comp_mode" : true },
* ],
* If you do not wish to mine with your AMD GPU(s) then use:
* "gpu_threads_conf" :
* null,
*/
"gpu_threads_conf" : [
// gpu: Baffin memory:1361
// compute units: 16
{ "index" : 0, "intensity" : 220, "worksize" : 8, "affine_to_cpu" : 1, "strided_index" : 1, "mem_chunk" : 2, "comp_mode" : true },
{ "index" : 0, "intensity" : 220, "worksize" : 8, "affine_to_cpu" : 1, "strided_index" : 1, "mem_chunk" : 2, "comp_mode" : true },
// gpu: Baffin memory:1641
// compute units: 14
{ "index" : 1, "intensity" : 480, "worksize" : 8, "affine_to_cpu" : 0, "strided_index" : 1, "mem_chunk" : 2, "comp_mode" : true },
{ "index" : 1, "intensity" : 480, "worksize" : 8, "affine_to_cpu" : 0, "strided_index" : 1, "mem_chunk" : 2, "comp_mode" : true },
// gpu: Baffin memory:1641
// compute units: 14
{ "index" : 2, "intensity" : 480, "worksize" : 8, "affine_to_cpu" : 2, "strided_index" : 1, "mem_chunk" : 2, "comp_mode" : true },
{ "index" : 2, "intensity" : 480, "worksize" : 8, "affine_to_cpu" : 2, "strided_index" : 1, "mem_chunk" : 2, "comp_mode" : true },
],
/*
* Platform index. This will be 0 unless you have different OpenCL platform - eg. AMD and Intel.
*/
"platform_index" : 0,
#!/bin/bash
export GPU_FORCE_64BIT_PTR=1
export GPU_USE_SYNC_OBJECTS=1
export GPU_MAX_ALLOC_PERCENT=100
export GPU_SINGLE_ALLOC_PERCENT=100
export GPU_MAX_HEAP_SIZE=100
./xmrig-amd --opencl-platform 0 --opencl-devices 0,1,2 --opencl-launch 800x8,840x4,760x4 --opencl-affinity 0,1,2 -o de.minexmr.com:7777 -u 4fgg456dfgf4545dfg47878fg78JXfgdfg454dfg456d4fgkzXVGLhMKsbkdeTdBdfs454fgdfg4545fffddfs4.rig2+66000 -p x --donate-level=2
kodl69 píše:Já jsem jeden z těch, co to kdysi spustil a ani nevím, kolik jsem natěžil, al kdysi to bylo snadný.
![]() |
|
Uživatelé procházející toto fórum: Žádní registrovaní uživatelé a 1 návštěvník