OMP: Error #133: Inconsistent THREADPRIVATE common block declarations are non-conforming and are unsupported. Either all threadprivate common blocks must be declared identically, or the largest instance of each threadprivate common block must be referenced first during the run.
發(fā)生以上錯誤確實很麻煩,而且可參考文檔基本沒有。Fortran代碼中的Common塊數(shù)據(jù)大小可以不一樣大(相同名稱的Common),但是在OpenMP中確要求,要么大小一樣,要么占用內(nèi)存最大的先調(diào)用,變量如果是隱式聲明,一定要注意,變量名稱不同,可能會編譯為不同長度的內(nèi)存