Mac 上的 Fortran 分析器?
我在我的 mac 上运行了一段科学代码(我正在运行雪豹),这是用 Fortran 编写的代码。我一直在尝试获取代码运行时的概况,但收效甚微。看来 gprof 不返回任何实际计时,只是返回子例程被调用的次数。我环顾四周,这似乎是一个常见问题。
我尝试了 Saturn,但它不支持 64 位,而且我正在使用外部库,所以这是不行的。
我也尝试过 Shark,但它的输出并不是我真正想要的,或者至少我无法破译它......
无论如何,只是想知道是否有人知道适用于 Fortran 的 mac 分析器?我使用Intel的ifort进行编译。
I've got a scientific code running on my mac (I'm running snow leopard) , a code written in Fortran. I've been trying to get a profile of the run time of the code, but am having little success. It appears that gprof doesn't return any actual timings, just a count on how many times a subroutine was called. I looked around, this appears to be a common problem.
I tried Saturn, but it doesn't do 64 bit and I'm using external libraries, so that's a no go.
I also tried Shark, but the output of that is not really what I'm looking for, or at least I can't decipher it...
Anyways, just wondering if anyone knows of a profiler for the mac that works with Fortran? I'm using Intel's ifort to compile.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您应该能够使用 Instruments 中的时间分析器(开发人员工具的一部分)。我以前曾在 Fortran 程序中使用过它,印象非常深刻。
You should be able to use the Time Profiler in Instruments (part of the Developers tools). I've used it before for Fortran programs and been very impressed.
一种解决方法是将代码转换为 C(将 Fortran 转换为 C 或 C++) 然后对其进行分析
One workaround could be to convert the code to C (Convert Fortran to C or C++) and then to profile it