由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - help -- matlab acceleration
相关主题
MATLAB function call too slow请推荐一本适用于初学者的C++编程书
intel released c++ compiler 2013C++新手问教科书C++primer好还是C++primer plus好
*** help needed! on MATLAB GUI ***c 语言 查 memory
有谁知道怎么把matlab和VC联接着一起用? (转载)[系统工具] Ashampoo系统实用工具套装2012
弱问mcc和mex的区别有没有快速把C++过一遍的书
C++ Boost怎么样,好用吗?Andriod 虚拟机速度十分卡什么原因? (转载)
问一个C++的问题nvda开源inference accelerator
大虾别骂我,请推荐c++书C++ (with MATLAB engine) compiling problem under Linux systerm
相关话题的讨论汇总
话题: matlab话题: mc话题: variate话题: speed
进入Programming版参与讨论
1 (共1页)
a***m
发帖数: 74
1
I have to use MC for 1e+9 runs to get the required accuracy. It roughly
takes 1000/2/60 = 7-8 hours to get a set of result.It's too time consuming.
I wonder if there are ways to accelerate matlab runs.
1. I heard about compiling matlab m file into execution file that can
operate at a speed similar to C. I am not sure how to do it.
2. I can try other MC methods, for example, control variate etc. Assume I
have a control variate that I know the true value, how do I use it to
accelerate MC speed?
An
l*****g
发帖数: 547
2
1. read help of matlab, it's all there
2. let matlab manage your variable memory, unless it is global.

.

【在 a***m 的大作中提到】
: I have to use MC for 1e+9 runs to get the required accuracy. It roughly
: takes 1000/2/60 = 7-8 hours to get a set of result.It's too time consuming.
: I wonder if there are ways to accelerate matlab runs.
: 1. I heard about compiling matlab m file into execution file that can
: operate at a speed similar to C. I am not sure how to do it.
: 2. I can try other MC methods, for example, control variate etc. Assume I
: have a control variate that I know the true value, how do I use it to
: accelerate MC speed?
: An

k****f
发帖数: 3794
3
升级机器最省事了。

.

【在 a***m 的大作中提到】
: I have to use MC for 1e+9 runs to get the required accuracy. It roughly
: takes 1000/2/60 = 7-8 hours to get a set of result.It's too time consuming.
: I wonder if there are ways to accelerate matlab runs.
: 1. I heard about compiling matlab m file into execution file that can
: operate at a speed similar to C. I am not sure how to do it.
: 2. I can try other MC methods, for example, control variate etc. Assume I
: have a control variate that I know the true value, how do I use it to
: accelerate MC speed?
: An

k**f
发帖数: 372
4
The improvement you can achieve by compiling to C code depends on your
original code. It could be large, or little.
Alternatively, you may wan to use the matlab profiler to find out the
bottleneck of your code. Often you'll find inefficient code that holds your
simulation speed. Then do some optimization to speed it up.
Good luck.
I*******r
发帖数: 211
5
put all your big loops in C. search mex+matlab for help.

.

【在 a***m 的大作中提到】
: I have to use MC for 1e+9 runs to get the required accuracy. It roughly
: takes 1000/2/60 = 7-8 hours to get a set of result.It's too time consuming.
: I wonder if there are ways to accelerate matlab runs.
: 1. I heard about compiling matlab m file into execution file that can
: operate at a speed similar to C. I am not sure how to do it.
: 2. I can try other MC methods, for example, control variate etc. Assume I
: have a control variate that I know the true value, how do I use it to
: accelerate MC speed?
: An

1 (共1页)
进入Programming版参与讨论
相关主题
C++ (with MATLAB engine) compiling problem under Linux systerm弱问mcc和mex的区别
问个弱的问题:能不能开发两种C++的compiler,一种是编译型的,一种是解释型的C++ Boost怎么样,好用吗?
[合集] How to link with mex问一个C++的问题
[合集] 正经问个代替Matlab的问题。 (转载)大虾别骂我,请推荐c++书
MATLAB function call too slow请推荐一本适用于初学者的C++编程书
intel released c++ compiler 2013C++新手问教科书C++primer好还是C++primer plus好
*** help needed! on MATLAB GUI ***c 语言 查 memory
有谁知道怎么把matlab和VC联接着一起用? (转载)[系统工具] Ashampoo系统实用工具套装2012
相关话题的讨论汇总
话题: matlab话题: mc话题: variate话题: speed