$sysinfo on MS Windows
                                
                                
                                
                                    
                                        by Marcin Błażejowski
                                    
                                
                                
                                        Hi,
I have a machine with 4 phisical cores (Intel Core i5-4460 @3.2 GHz
_without HT_) ran under Windows 7 Pro 64 bit. The 'eval $sysinfo' gives
the following message:
------
? eval $sysinfo
bundle anonymous:
  nproc = 4
  blascore = Haswell
  hostname = KATEDRAWSB
  os = windows
  mpi = 1
  blas = openblas
  omp_num_threads = 4
  ncores = 1
  omp = 1
  blas_parallel = OpenMP
  mpimax = 4
  wordlen = 64
------
Shouldn't the 'ncores' entry be set to 4 instead of 1?
Marcin
-- 
Marcin Błażejowski
                                
                         
                        
                                
                                6 years
                        
                        
                 
         
 
        
            
        
        
        
                
                        
                        
                                
                                
                                        
                                                
                                        
                                        
                                        Debugging MPI on Windows
                                
                                
                                
                                    
                                        by Marcin Błażejowski
                                    
                                
                                
                                        Hi,
I face the problem with MPI in Windows: when I start processing on more
than 3 nodes I'm getting the following message (current git 64 bit
compilation + currenty MS MPI 10 library):
##################
MPI nodes: 4, OMP threads: 1
gretlmpi 2019d-git
job aborted:
[ranks] message
[0-1] terminated
[2] application aborted
aborting MPI_COMM_WORLD (comm=0x44000000), error 1, comm rank 2
[3] terminated
---- error analysis -----
[2] on KATEDRAWSB
C:\Program Files\gretl\gretlmpi aborted the job. abort code 1
---- error analysis -----
##################
The same code runs on Linux + OpenMPI even in 20 nodes (haavelmo). So
I'd like to ask how to debug MPI on Windows efficiently?
Marcin
-- 
Marcin Błażejowski
                                
                         
                        
                                
                                6 years
                        
                        
                 
         
 
        
            
        
        
        
                
                        
                        
                                
                                
                                        
                                                
                                        
                                        
                                        invalid compressed data
                                
                                
                                
                                    
                                        by Artur Tarassow
                                    
                                
                                
                                        Dear all,
I am currently working with a 2.8GB csv data file which I stored as a 
gdtb file (compressed to about 170MB). However, trying to open the gdtb 
file yields an error (see attached screenshot) with the message that the 
data is not compressed in a valid manner. Smaller gdtb files work fine 
though.
If I remember correctly, I also obtained a message refering to some 4GB 
limit this afternoon -- however I cannot replicate this.
The issue occurs on Ubuntu 18.04 using latest git.
Best,
Artur
                                
                         
                        
                                
                                6 years
                        
                        
                 
         
 
        
            
        
        
        
                
                        
                        
                                
                                
                                        
                                                
                                        
                                        
                                        Datatype of Int or Float in gretl
                                
                                
                                
                                    
                                        by Artur Tarassow
                                    
                                
                                
                                        Dear all,
I tried to find out what's the default datatype gretl stores integers or 
float values. However, I could not find any information on this.
Also, is it somehow possible to define the datatype of a series in 
gretl? I would like to restrict the datatype of series S to int8 or so 
in order to safe memory space.
Thanks,
Artur
                                
                         
                        
                                
                                6 years
                        
                        
                 
         
 
        
            
        
        
        
                
                        
                                
                                 
                                        
                                
                         
                        
                                
                                
                                        
                                                
                                        
                                        
                                        String-valued series encoding
                                
                                
                                
                                    
                                        by Riccardo (Jack) Lucchetti
                                    
                                
                                
                                        Hi all,
I've had a recurring problem with string-valued series, and I'm struggling 
to find a solution.
Suppose you have two or more string-valued series that you get from a csv 
or Stata file, and that they represent comparable variables, so they 
contain the same strings. Currently, we encode string-valued series by 
creating string arrays that get filled by occurrence; this, however, 
impleis that there is no guarantee that the correspondence between 
internal numerical values and strings is the same for the different 
series. This makes it awkward to read the output from commands such as 
freq or xtab.
Writing a script to correct for that has proven quite difficult, and what 
I was able to come up with is VERY far from elegant. An example script 
follows, and suggestions are much appreciated.
<hansl>
set verbose off
function series string_reorder(strings new, series x)
     strings ss = strvals(x)
     n = nelem(ss)
     m = nelem(new)
     series tmp = NA
     loop i = 1 .. n --quiet
         si = ss[i]
         k = 0
         loop j = 1 .. m --quiet
             if si == new[j]
                 k = j
                 break
             endif
         endloop
         if k>0 # found
             tmp = (x == si) ? k : tmp
         endif
     endloop
     return tmp
end function
clear
set verbose off
outfile "@dotdir/tmp.csv"
     printf "var1,var2,var3\n"
     printf "a,b,c\na,c,b\nb,b,b\nc,a,b\na,b,c\na,c,c"
end outfile
open "@dotdir/tmp.csv" --quiet
print var1 var2 --byobs
xtab var1 var2 # no good
# record encoding for var1
ss = strvals(var1)
# note: you can't just assign to var2
var2new = string_reorder(ss, var2)
stringify(var2new, ss)
delete var2
rename var2new var2
# values are the same, but the encoding is reordered
print var1 var2 --byobs
xtab var1 var2 # better
</hansl>
-------------------------------------------------------
   Riccardo (Jack) Lucchetti
   Dipartimento di Scienze Economiche e Sociali (DiSES)
   Università Politecnica delle Marche
   (formerly known as Università di Ancona)
   r.lucchetti(a)univpm.it
   http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------
                                
                         
                        
                                
                                6 years
                        
                        
                 
         
 
        
            
        
        
        
                
                        
                        
                                
                                
                                        
                                                
                                        
                                        
                                        'omit const' doesn't work
                                
                                
                                
                                    
                                        by Sven Schreiber
                                    
                                
                                
                                        Hi,
consider this:
<hansl>
nulldata 10
series x = normal()
ols x const
stat = $coeff(const) / $stderr(const)
printf "Signif. of const: %g\n", 2* pvalue(t, $T-1, abs(stat))
omit const	# error
</hansl>
This should work, no?
thanks
sven
                                
                         
                        
                                
                                6 years