Hi,
I have installed scr 1.2.0 and I'm willing to add a XOR
descriptor in scr.conf as discussed in the user manual. For now I want to have a single XOR
descriptor in /tmp/username/cache
. So I have added following lines to the scr.conf as described in the manual:
SCR_COPY_TYPE=FILE
STORE=/tmp/username/cache GROUP=NODE COUNT=1
CKPT=0 INTERVAL=1 GROUP=NODE STORE=/tmp/username/cache TYPE=XOR SET_SIZE=8
after running my scr test program I get following error:
SCR v1.2.0 ABORT: rank 0 on <NodeName>: Failed to create store descriptor for control directory [/tmp] @ <SCR_DIRECTORY>/src/scr_storedesc.c:355
which I believe indicates that there is a default store descriptor (/tmp
) which cannot be found among available descriptors (in this case the only available descriptor is /tmp/username/cache
according to the scr.conf file).
I have traced the code and found out that the default store descriptor is stored in a global variable scr_cntl_base
and its value will be set in scr.c:841
from scr.conf or environment if found, and else it will be set in scr.c:843
from a constant named SCR_CNTL_BASE
(default descriptor /tmp
).
This means if I want to change the value of scr_cntl_base
I should set the correct descriptor in the scr.conf or environment as follows:
in scr.conf:
SCR_CNTL_BASE = /tmp/username/cache
or in the environment:
export SCR_CNTL_BASE=/tmp/username/cache
But after setting the SCR_CNTL_BASE
value using scr.conf or environment and running the test program I get following error:
SCR v1.2.0 ERROR: rank 0 on <NodeName>: SCR_CNTL_BASE cannot be set in the environment or user configuration file, ignoring setting
This prevents me from updating the value of scr_cntl_base
. I'm confused about how to add my descriptor to the scr.conf file. Am I missing something?