3

I'm trying to parallelize a number-crunching part of an application to make use of a quad-core architecture using OpenMP and GCC 4.2 on Mac OS 10.5. But what I think the problem is that this application uses Qt for the GUI and I'm trying to fork the worker threads on a secondary thread created by Qt which causes the program to crash - but of this I'm not sure.

I'm seriously on the dark here since it's my first time working with either Qt or OpenMP, (or C++ for that matter). Any sort of guidance is greatly appreciated.

4

2 に答える 2

0

現時点では、これは機能しません。私の記憶が正しければ、Qt と gcc のバグとしても報告されたと思います。それは何度か報告されました(例ここ)。少なくとも Linux では、いくつかの gcc/Qt の組み合わせで動作します。

于 2010-07-11T20:54:32.180 に答える
0
  1. Qt スレッドで実行していない場合など、OpenMP を使用する部分はスタンドアロンで動作しますか?
  2. QtConcurrentまたはQt のスレッド サポートからの他のソリューションを使用して問題に取り組むことができますか?
  3. いずれにせよ、説明のためにコードの一部を提供できますか? 通常、それは問題をはるかに簡単にします。
于 2010-06-24T07:04:41.643 に答える