請幫我使用OpenMP 這個代碼在按鈕單擊運行,並在文本框中爲128 using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
us
我在Snow Leopard和linux上編譯了這部分代碼,並得到了不同的結果。在Snow leopard中,omp_get_max_threads的第一個調用返回2,這是我的核心數量,而第二個返回1.在Linux上,兩個調用返回4,這是我的核心數。我認爲Linux有正確的行爲,對嗎?都是正確的,我只是誤解了這個函數? Mac的輸出: In a serial region; max thre