I am trying to use OpenMP and PARDISO functions in my Fortran code. In the source file, I have such code:
!$omp parallel do default(shared),private(ii)
!$omp end parallel do
When I call PARDISO function, I have such code:
iparm(3) = omp_get_max_threads()
The other code is similar to the examplecode of pardiso_sym_f.f.
At last, the code was compiled and linked as follows:
ifort /c /O3 /threads /Qopenmp /libs:static mycode.f90
ifort /dll /INCREMENTAL:NO /NOLOGO /SUBSYSTEM:WINDOWS /o mydll.dll *.obj libguide.lib mkl_c.lib
Now if I run the main program which calls the dll in x64 machine (2 CPUs, 4 cores, they works fine (they are also compiled in x64 mode). However, if I compile and run them in 32 bit machine (1 CPU, 1 core or 2 cores), the following error displayed:
Could anyone tell me what leads such error information?