#Contribute Resources Help

290 messages · Page 1 of 1 (latest)

grave solar
#

I used to contribute a little bit of my machine resources to fishtest in the past.
Now I would like to resume that, who can assist me step by step to set up everything correctly again on my new laptop?

crude scroll
#

@viscid mulch @sharp drum

orchid lily
grave solar
grave solar
orchid lily
#

Just proceed with the next step and see if that works

#

I think it will be fine since you already have a compiler installed

grave solar
#

when I double click 2_install_worker.cmd
nothing happens, it just open a window and close it in less than 0.001 seconds

sharp drum
#

Well

#

you are invoking msys command in a windows CMD

#

I don't think that's how stuff works

#

you need to run whatever script from msys

#

I don't know honestly how to install the worker on windows

#

I never tried

#

I can check later and let you know

fringe girder
#

did you reboot?

#

it says you didn't

#

you already have msys2 installed

sharp drum
#

ofc he has is yes

#

he installed it for compiling SF

#

so maybe go to next step?

#

or restart computer?

#

@grave solar did you get it to work?

#

it works for me

#

this is what 02_install_worker.cmd contains

@echo off
::install fishtest worker
C:\tools\msys64\msys2_shell.cmd -defterm -mingw64 -here -c "bash 02_install_worker.sh 2>&1 | tee 02_install_worker.sh.log"
#

so if you have the wrong address

#

it will not work

#

my address is C:\msys64...

#

So I changed the cmd content with notepad

grave solar
#

@sharp drum Thanks, now it worked

sharp drum
#

np

grave solar
#

@sharp drum now I'm stuck at the last step:
iv. Start the worker

I can't find the worker in the folder

fringe girder
#

i see worker folder right there

grave solar
#

Maybe the problem is that i dont have python?

#

Is python a must for running the worker?

fringe girder
#

yes

#

it literally written in python

grave solar
orchid lily
#

at seceond 5 mingw is also installing python, so i think it might be already there

fringe girder
#

the problem is probably you used the old instructions before

#

you have to use mingw 64 prompt

#

probably

#

not cmd

orchid lily
#

they are all cmd's

#

you just double click them

fringe girder
#

is it supposed to run .sh for windows instructions?

#

this is strange

grave solar
#

I can give access through teamviewer

fringe girder
#

you better off removing everything and then starting from beginning

#

your old stuff is interfering

#

most likely

grave solar
#

Last time, peregrine spent half an hour helping me to set up msys mingw, etc., to be able to compile new patches.
So I guess I will just leave everything as it is, I'm afraid to ruin stuff, I wanted to contribute with only 1 core per day anyway.

fringe girder
#

then like i said already

#

you cant use those instructions

#

you have to do it from the mingw prompt

#

hit start and then type mingw and then choose the 64 bit

#

yeah, not worth it probably if you can't get it to work

fringe girder
#

copy the command from where diss linked

#

after the bash part

fringe girder
#

after you cd to /c/wherever

sharp drum
grave solar
sharp drum
#

didn't the script installed for you?

fringe girder
#

it's probably installed but not in path and he isn't using right shortcut

sharp drum
#

Yes then he need to add python to path

#

but not sure what do you mean by shortcut?

fringe girder
#

if he launch with mingw gcc 64 it should work

#

but he uses cmd

sharp drum
#

okay I see the issue

#

he already installed worker with cmd

grave solar
#

What can I do to make sure that python is now installed?

sharp drum
#

he does not need to install it again with .sh

#

open the worker folder please

#

copy the address of the worker folder

grave solar
#

C:\Users\Fauzi\Downloads\fishtest-worker-setup-master\worker

sharp drum
#

open mingw

#

send cd /C/Users/Fauzi/Downloads/fishtest-worker-setup-master/worker

#

send python -v after

fringe girder
#

python3 -v

sharp drum
#

well we want to check which one is there

grave solar
sharp drum
#

send pacman -S mingw-w64-x86_64-python

grave solar
#

is there a way to paste the copied test in mingw?
ctrl+v is not working

#

each command im writing it manually for now

sharp drum
#

right click paste

grave solar
#

should I click another Y to "delete it" ?

fringe girder
#

yes

grave solar
#

Errors occurred, no packages were upgraded.

fringe girder
#

pacman -Syuu

#

first

grave solar
#

Y?

sharp drum
#

yes

fringe girder
#

yes

grave solar
#

ok, now its closed

sharp drum
#

open it again

fringe girder
#

open it and run pere comamnd

grave solar
fringe girder
#

no

sharp drum
#

pacman -S mingw-w64-x86_64-python

fringe girder
#

the install one

grave solar
#

done

sharp drum
#

python -v

grave solar
#

So I guess now I have Python 3.11.7

sharp drum
#

python worker.py

fringe girder
#

almost there

#

last step

sharp drum
#

wait

grave solar
sharp drum
#

you need to exit first

#

exit()

grave solar
grave solar
sharp drum
#

now python worker.py

grave solar
sharp drum
#

ah you are at wrong address

#

cd /C/Users/Fauzi/Downloads/fishtest-worker-setup-master/worker

#

first

grave solar
#

ok

fringe girder
#

yay

#

we did it reddit

grave solar
#

Well, i entered my username normally, and it worked

#

but when it ask me for password

#

i cant type anything

fringe girder
#

it won't show it

sharp drum
#

you can type it's hidden

fringe girder
#

you have to type it blind

grave solar
#

it keep telling me: Invalid or missing credentials

#

Even though I entered my password blindly

fringe girder
#

if you were inactive for long time ur acct gets deactivated

grave solar
sharp drum
#

no your account is not deactivated

#

use correct username

#

and correct password

grave solar
#

ok it worked now

sharp drum
#

username is fauzi2

grave solar
#

Thanks guys ❤️

sharp drum
#

you're welcome

grave solar
#

However, everytime I need to launch the worker, I need to use mingw? or can I launch it from the standard .cmd file that I have in the folder?

sharp drum
#

let me make it easier for you

#

go to msys folder

fringe girder
#

pere just remote to his machine lol

grave solar
#

Also, it decided by itself to use 3 cores, but I wanted to use only 1 core

sharp drum
#

change in config

grave solar
#

I mean, usually through the cmd method, it asks you how many cores you want to dedicate.
While here it didnt ask

sharp drum
#

and rerun worker

#

dont you have a config file?

#

in worker folder?

#

fishtest.cfg

grave solar
#

Yes found it

sharp drum
#

or something

#

does it have cores:3?

grave solar
#

concurrency = max(1,min(3,MAX-1)) ; = 3 cores

#

should I change to:
concurrency = max(1,min(1,MAX-1)) ; = 1 cores
?

sharp drum
#

where is the MAX

#

variable

#

assigned

#

change the MAX

#

not the equation

#

you smart 😛

#

although both works

#

did you find a place that have MAX = someNumber?

fringe girder
#

he probably opened the .py instead of the config

#

lol

grave solar
#

I opened this one, but there is no MAX =

sharp drum
#

ah okay

#

I'm stupid

#

MAX is not a variable you can change

#

it's the max cores you have

#

which is 4

grave solar
sharp drum
#

so yes

#

change that to 1

#

3 to 1

#

you're right

grave solar
#

I have the following CPU:
12th Gen Intel(R) Core(TM) i5-1235U 1.30 GHz

I don't think I only have 3 cores

sharp drum
#

MAX - 1

#

if you look at equation

#

it's a clamp

grave solar
#

I thought my cpu has 8 cores or more

sharp drum
#

@fringe girder how to check how many cores he has?

grave solar
fringe girder
#

he has 2 p core and 8 e core

sharp drum
#

OKay that's the MAX - 1 is the clamp

#

Which means

fringe girder
#

it is only counting the p cores with hyperthreading i think

sharp drum
#

concurrency = max(1,min(x,MAX-1)) ; = x cores

#

iif you assign more than the maximum

#

the equation will clamp it anyways

#

try 50 cores

#

instead of x

grave solar
#

ok lets try anyway, I just changed the formula to:
concurrency = max(1,min(1,MAX-1)) ; = 1 cores

sharp drum
#

and it will be clamped

grave solar
#

now i will run the worker

sharp drum
#

you can just put
concurrency = 1

fringe girder
#

yeah

sharp drum
#

if you know you will not put more

#

than max

sharp drum
#

you need to add python to env variables

#

so that you can use cmd

#

and better move the worker folder to another place

#

that is easy for you to access

#

for example

grave solar
#

ok, how?

sharp drum
#

at desktop

#

cut and paste to the desired place

#

the worker folder

grave solar
#

ok just a sec, since i already ran the worker, to test how many cores its using

sharp drum
#

C:\msys64\mingw64\bin
see if python.exe is here

grave solar
#

ok, so i cut the worker folder to desktop, and then what?

sharp drum
#

see if python is here

#

C:\msys64\mingw64\bin

grave solar
#

Even though i closed the worker 1 minute ago, i still cant cut paste the folder:

sharp drum
#

you need to exit the worker

#

before moving it to another place

grave solar
sharp drum
#

close the text editor that is opening fishtest config

#

as well

grave solar
#

it is, anyway i will restart the laptop.
maybe something is still running behind the curtains

sharp drum
#

no

#

don't restart computer

#

close mingw shell

grave solar
#

it is closed...

sharp drum
#

ctrl alt delete
and see if python is running and end the proccess

#

instead of restarting computer

grave solar
sharp drum
#

strange okay you can restart computer later let's continue the procces before moving the worker folder

#

C:\msys64\mingw64\bin

#

see if this has python

grave solar
#

restart completed.
do you suggest to move to desktop the whole:
fishtest-worker-setup-master folder
Or only worker folder

sharp drum
#

only the worker since you only care about it now

#

other stuff we already used

grave solar
#

ok done, pasted to desktop

sharp drum
#

LOL

grave solar
sharp drum
#

you can either navigate to it manually or just paste any address here

#

to immediatly go to it

grave solar
#

ok I'm there

sharp drum
#

is there python.exe

grave solar
#

yes

sharp drum
#

open system enviromental variables
and add C:\msys64\mingw64\bin to the path

grave solar
grave solar
sharp drum
#

whichever you like

#

one is universal

#

and one is only for this user

grave solar
#

Done

sharp drum
#

it's already there...........

grave solar
#

oh yes

sharp drum
#

remove it

#

keep 1

#

and open cmd

grave solar
#

👍

sharp drum
#

and type python -v

grave solar
sharp drum
#

close this cmd

#

now go the worker folder

#

and in the address bar

#

write cmd

#

then enter

grave solar
#

yes

sharp drum
#

now you can run worker from cmd

grave solar
sharp drum
#

wait

#

did it not open cmd for you?

grave solar
#

yes it did, I was waiting for what command to type, but now I understand you meant python worker.py

#

working like a charm

#

thanks bro

sharp drum
#

np

grave solar
#

after all this, we got one more core to our fleet kekw