Redian新闻
>
如何在程序中调用双(多)CPU进行计算?
avatar
如何在程序中调用双(多)CPU进行计算?# Unix - 噫吁兮,危乎高哉
i*d
1
我要在UNIX平台上,用C语言调用一个仿真软件,为提高计算速度,希望
能用多CPU同时运行计算,如何实现呢?
谢谢各位大虾指教!
avatar
t*q
2
Reprogram your C code to multi thread,
and your unix should be aware of the multi CPU.
then, the os will auto assigned your code runing
on different CPUs.
Or read some parrallel processing material.
This is that area as I think.

【在 i*****d 的大作中提到】
: 我要在UNIX平台上,用C语言调用一个仿真软件,为提高计算速度,希望
: 能用多CPU同时运行计算,如何实现呢?
: 谢谢各位大虾指教!

avatar
i*d
3
how? I mean if some functions of C language can control
using multi-CPUs?
Thanks!

【在 t******q 的大作中提到】
: Reprogram your C code to multi thread,
: and your unix should be aware of the multi CPU.
: then, the os will auto assigned your code runing
: on different CPUs.
: Or read some parrallel processing material.
: This is that area as I think.

avatar
f*t
4
For parallel computer, specific C library for using multi-CPU
is always available. You can refer to the manual of
the computer.
MPI is a standard programming interface for parallel computer.

【在 i*****d 的大作中提到】
: how? I mean if some functions of C language can control
: using multi-CPUs?
: Thanks!

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。