Re: [Scilab-users] More rapid calculation

2018-02-14 Thread fujimoto2005
Sorry, my code contains line "exec user file " 
I attached revised version which contains the line as a user function.
Please see it.

Best regards

corSmplebaseZ1andZ2_with_UserFunc.sce

  



--
Sent from: 
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] More rapid calculation

2018-02-14 Thread fujimoto2005
Dear all
Thank you for your replies.

I attached my code and a snapshot of task manager.
The snapshot shows a typical situation.
CPU utilization is usually between 10 and 20%.
There are about 3 times when the CPU utilization instantaneously reaches
from 40% to 50%.
The memory usage does not exceed 20 GB.
Always at least 40 GB is free.

Thank you.

corSmplebaseZ1andZ2.sce
  

snapshot_of_task_manager.png
  




--
Sent from: 
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] More rapid calculation

2018-02-14 Thread stephane . mottelet

 Here is an example (pure linear algebra) using 100% cpu (4 cores) :

http://www.utc.fr/~mottelet/Images/cpu.png

S.

Quoting stephane.motte...@utc.fr:

If your program does not take advantage of the MKL Intel library, it  
means that its CPU usage is not dominated by linear algebra stuff.  
If you don't tell us more we won't be able to help...


S.

Quoting fujimoto2005 :


Dear Mottellet

But there is an explanation "If we use the Intel MKL on Windows, then Scilab
use all the cores available on the processor. "
https://wiki.scilab.org/Documentation/ParallelComputingInScilab

So I expected there are some ways to increase the usage of cpu.

--
Sent from:  
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html

___
users mailing list
users@lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users



 
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] More rapid calculation

2018-02-14 Thread Samuel Gougeon

Le 14/02/2018 à 19:15, stephane.motte...@utc.fr a écrit :


If your program does not take advantage of the MKL Intel library, it 
means that its CPU usage is not dominated by linear algebra stuff.


I was actually wondering that the bootle neck is not the CPU. This is 
why i was thinking about the RAM.
But with 64 GB, this means that more than <32 copies are simultaneously 
defined/reserved (internally and/or in the Scilab program).

Fujimoto2005, couldn't it be the case, in your Scilab code?
Are you cleaning properly all intermediate variables after usage?

Samuel

PS: What a powerful PC! :)

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] More rapid calculation

2018-02-14 Thread stephane . mottelet
 If your program does not take advantage of the MKL Intel library, it  
means that its CPU usage is not dominated by linear algebra stuff. If  
you don't tell us more we won't be able to help...


S.

Quoting fujimoto2005 :


Dear Mottellet

But there is an explanation "If we use the Intel MKL on Windows, then Scilab
use all the cores available on the processor. "
https://wiki.scilab.org/Documentation/ParallelComputingInScilab

So I expected there are some ways to increase the usage of cpu.

--
Sent from:  
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html

___
users mailing list
users@lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] More rapid calculation

2018-02-14 Thread fujimoto2005
Dear Mottellet

But there is an explanation "If we use the Intel MKL on Windows, then Scilab
use all the cores available on the processor. "
https://wiki.scilab.org/Documentation/ParallelComputingInScilab

So I expected there are some ways to increase the usage of cpu.



--
Sent from: 
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] More rapid calculation

2018-02-14 Thread antoine monmayrant

Hello,


If your problem is embarrassingly parallel (ie you run your simulations 
many times independently for different random matrices), you might speed 
up the overall simulation by running more than one instance of scilab in 
parallel.



Antoine


Le 14/02/2018 à 18:00, Stéphane Mottelet a écrit :

Hello,

A priori, there is no reason why your calculation should use more than 
one CPU core, which explains why you see only 1/8=12,5% CPU use.


S.


Le 14/02/2018 à 14:35, fujimoto2005 a écrit :

I am using 6.00 for windows.
I am doing a simulation using a random number matrix with a huge 
size. The

size of the random matrix is 10 ^ 4 x 25000.
I am using a PC equipped with 8 cores and 16 threads.
It takes a considerable time to finish the simulation, but CPU 
utilization
is as low as 10-20%. Is there any way to increase the CPU usage and 
finish

the calculation sooner?
The loop is not used. I am using matrix functions.
I also considered parallel computing, but it is said that it can not 
be used

on windows.

Best regards.



--
Sent from: 
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users



___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] More rapid calculation

2018-02-14 Thread Stéphane Mottelet

Hello,

A priori, there is no reason why your calculation should use more than 
one CPU core, which explains why you see only 1/8=12,5% CPU use.


S.


Le 14/02/2018 à 14:35, fujimoto2005 a écrit :

I am using 6.00 for windows.
I am doing a simulation using a random number matrix with a huge size. The
size of the random matrix is 10 ^ 4 x 25000.
I am using a PC equipped with 8 cores and 16 threads.
It takes a considerable time to finish the simulation, but CPU utilization
is as low as 10-20%. Is there any way to increase the CPU usage and finish
the calculation sooner?
The loop is not used. I am using matrix functions.
I also considered parallel computing, but it is said that it can not be used
on windows.

Best regards.



--
Sent from: 
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] More rapid calculation

2018-02-14 Thread fujimoto2005
Dear Samuel
Thanks for your reply.

My PC is equipped with 64GB SDRAM.
Isn't it enough?

Best regards.



--
Sent from: 
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] More rapid calculation

2018-02-14 Thread Samuel Gougeon

Le 14/02/2018 à 14:35, fujimoto2005 a écrit :

I am using 6.00 for windows.
I am doing a simulation using a random number matrix with a huge size. The
size of the random matrix is 10 ^ 4 x 25000.
I am using a PC equipped with 8 cores and 16 threads.
It takes a considerable time to finish the simulation, but CPU utilization
is as low as 10-20%. Is there any way to increase the CPU usage and finish
the calculation sooner?


So may be it's a RAM issue. If you need a lot of intermediate memory and 
you don't have it (here you need 2GB per copy, if you are using decimal 
numbers), it usually goes to the disk space.. which is unbearably slow.


My two cents..
Samuel

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] More rapid calculation

2018-02-14 Thread fujimoto2005
I am using 6.00 for windows.
I am doing a simulation using a random number matrix with a huge size. The
size of the random matrix is 10 ^ 4 x 25000.
I am using a PC equipped with 8 cores and 16 threads.
It takes a considerable time to finish the simulation, but CPU utilization
is as low as 10-20%. Is there any way to increase the CPU usage and finish
the calculation sooner?
The loop is not used. I am using matrix functions.
I also considered parallel computing, but it is said that it can not be used
on windows.

Best regards.



--
Sent from: 
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] A new smarter default grid style for Scilab 6.1.0 (SEP)

2018-02-14 Thread Samuel Gougeon

Dear co-users,

New smart lines styles #7 to #10 were defined 3-4 years ago:
https://help.scilab.org/docs/6.0.0/fr_FR/polyline_properties_3.png

However, the default grid_style == #3 has not been improved.
Being aware that better styles are available, this makes me setting by
hand the grid_style almost every time that i need it. Somewhat boring...

I propose to change the default style to one of the new values #7 to #9.
The full rational for this proposal is posted as bug 
http://bugzilla.scilab.org/15421

where a piece of code is available, to test and compare.

The related screen shot is here: 
http://bugzilla.scilab.org/attachment.cgi?id=4637


Comments are welcome

Best regards
Samuel

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Shift indices

2018-02-14 Thread perrichon
Dear,

 

this instruction is exactly the one I wanted

 

It allows me on a PELTON 6 jet machine to get a rotating pilot injector

 

Pierre.

 

De : users [mailto:users-boun...@lists.scilab.org] De la part de Samuel
Gougeon
Envoyé : jeudi 9 novembre 2017 00:31
À : Users mailing list for Scilab 
Objet : Re: [Scilab-users] Shift indices

 

Le 08/11/2017 à 15:07, Richard llom a écrit :

Hello,
is there a function available to shift indices?
E.g. I have
aa = [1:10]
and want
bb =  6.   7.   8.   9.   10.   1.   2.   3.   4.   5.


If you need to shift i = 1:n indices by any p -- not necessarily n/2 --, you
may do

si = modulo(i+p-1, n)+1// with n = length(i);

Example:
i = 1:10, p = 2;
si = modulo(i+p-1, length(i))+1
--> i = 1:10, p = 2;
 i  = 
   1.   2.   3.   4.   5.   6.   7.   8.   9.   10.

--> si = modulo(i+p-1, length(i))+1
 si  = 
   3.   4.   5.   6.   7.   8.   9.   10.   1.   2.

Samuel

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] How to convert .wav to formula?

2018-02-14 Thread Hermes
another way to get the graph

clear;
[x,S,bits]=wavread("foo.wav")
analyze(x);
mclose('all');

How to use the variables of the  function analyze:fmin, fmax, rate, points?




--
Sent from: 
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] How to convert .wav to formula?

2018-02-14 Thread Hermes
another way to get the graph

clear;
[x,S,bits]=wavread("foo.wav")
analyze(x);
mclose('all');

How to use the variables of the weer function analyze:fmin, fmax, rate,
points?




--
Sent from: 
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users