4

今天编译项目真心觉得很憔悴啊

 2 years ago
source link: https://changkun.de/blog/posts/%E4%BB%8A%E5%A4%A9%E7%BC%96%E8%AF%91%E9%A1%B9%E7%9B%AE%E7%9C%9F%E5%BF%83%E8%A7%89%E5%BE%97%E5%BE%88%E6%86%94%E6%82%B4%E5%95%8A/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

今天编译项目真心觉得很憔悴啊

Published at:

2014-01-22

  |  

Reading: 365 words ~1min

  |  

PV/UV: 3/3

花了半个月写了个deep learning的代码,今天第一次编译,第一层训练奇葩的花了8个小时,第二层训练奇葩的花了40分钟,第三层训练奇葩的花了30分钟,当时就跪了,当我截图玩第三层后发现运行的控制台不见了,当时就一气急败坏,于是才意识到

system("pause");

这句代码的重要性。于是冷静下来仔细思考,于是想到用release编译会不会快很多很多,不出所料,不知是 cv::Mat的原因还是 vector< vector< int > > 的原因,release编译后两分钟就出结果了,倍感编译的重要性。 还有,在程序开跑的时候,意识到单核跑程序根本就是太浪费资源了,放着四核八个线程,20%-22%的恒定CPU占用太蛋疼了,于是从大神那里了解到OpenMP,有空抽时间了解一下好了。 再有,在程序开跑的时候,意识到自己写的代码太糟糕了,果然是程序敲完后才会发现自己有多蠢,好吧,暂时告一段落了。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK