<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic forrtl:severe: program exception - access violation  in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/forrtl-severe-program-exception-access-violation/m-p/893803#M10645</link>
    <description>OS: Window XP (32 bit.)&lt;BR /&gt;Processor: Intel Core 2&lt;BR /&gt;Memory: 3 GB&lt;BR /&gt;Version: Visual Studio 2005 Prof. Ed.&lt;BR /&gt;IVF 11.1.038&lt;BR /&gt;MKL 10.2.1 &lt;BR /&gt;&lt;BR /&gt;Forrtl:severe&amp;lt;157&amp;gt;: Program Exception  access violation&lt;BR /&gt;Mkl_intel_thread. 1029620E. Unknown&lt;BR /&gt;&lt;BR /&gt;I solved linear systems of equation Ax=b, where A is positive definite and 108 by 108 and b is 108 by 1 vector.&lt;BR /&gt;I got answer well via previous version IVF 11.0.078 and MKL 10.0.1, but I cant have the answer via new version, IVF 11.1.038 and MKL 10.2.1.&lt;BR /&gt;Whats the problem?&lt;BR /&gt;&lt;BR /&gt;program Inverse_Test&lt;BR /&gt;implicit double precision (A-H, O-Z)&lt;BR /&gt;&lt;BR /&gt;integer nDim, i,j,k, nEnv&lt;BR /&gt;! Ax = b&lt;BR /&gt;integer,allocatable:: jA(:)&lt;BR /&gt;integer,allocatable:: iA(:) &lt;BR /&gt;real*8, allocatable:: A(:)&lt;BR /&gt;real*8, allocatable:: b(:)&lt;BR /&gt;real*8, allocatable:: x(:) &lt;BR /&gt;&lt;BR /&gt;! parameters for Intel Math. Kernel Lib.&lt;BR /&gt;integer*4 pt(64) ! solver internal data address pointer for 32 bit operating system&lt;BR /&gt;integer*8 ddum ! dummy&lt;BR /&gt;integer maxfct ! max. number of factors with identical nonzero sparsity structure&lt;BR /&gt;integer mnum ! actual matrix for the solution phase&lt;BR /&gt;integer mtype ! matrix type 2: real &amp;amp; symmetric positive definite &lt;BR /&gt;integer phase ! controls the execution of the solver&lt;BR /&gt;integer nrhs ! dimension of right hand side&lt;BR /&gt;integer error ! error&lt;BR /&gt;integer msglvl ! statistics data&lt;BR /&gt;integer*4 iparm(64) ! parameter array for MKL &lt;BR /&gt;integer omp_get_max_threads ! get max thread&lt;BR /&gt;EXTERNAL omp_get_max_threads&lt;BR /&gt;&lt;BR /&gt;nDim = 108&lt;BR /&gt;nEnv = 4014&lt;BR /&gt;! allocation&lt;BR /&gt;allocate ( A(nEnv) )&lt;BR /&gt;allocate ( jA(nEnv) )&lt;BR /&gt;allocate ( iA(nDim + 1) )&lt;BR /&gt;allocate ( b(nDim) )&lt;BR /&gt;allocate ( x(nDim) )&lt;BR /&gt;&lt;BR /&gt;data nrhs /1/, maxfct /1/, mnum /1/&lt;BR /&gt;&lt;BR /&gt;mtype = 2 ! real and SPD&lt;BR /&gt;! initialize PARDISO (solve inverse matrix )&lt;BR /&gt;call pardisoinit(pt, mtype, iparm)&lt;BR /&gt;iparm(1) = 1 ! no solver default&lt;BR /&gt;iparm(2) = 2 ! 2 fill-in reordering from METIS&lt;BR /&gt;iparm(3) = omp_get_max_threads()! number of processors&lt;BR /&gt;iparm(7) = 16 ! default logical fortran unit number for output&lt;BR /&gt;iparm(8) = 9 ! numbers of iterative refinement steps&lt;BR /&gt;iparm(10)= 13 ! perturbe the pivot elements with 1E-13&lt;BR /&gt;msglvl = 0 ! don't print statistical information&lt;BR /&gt;&lt;BR /&gt;! initialize matrix and vector&lt;BR /&gt;! Ax = b &lt;BR /&gt;A = 0.d0&lt;BR /&gt;b = 0.d0&lt;BR /&gt;x = 0.d0&lt;BR /&gt;&lt;BR /&gt;! read data from txt files&lt;BR /&gt;open(11,file='A.txt')&lt;BR /&gt;do i = 1, nEnv&lt;BR /&gt;read(11,*) A(i)&lt;BR /&gt;end do&lt;BR /&gt;close(11)&lt;BR /&gt;&lt;BR /&gt;open(22,file='b.txt')&lt;BR /&gt;do i = 1, nDim&lt;BR /&gt;read(22,*) b(i) &lt;BR /&gt;end do&lt;BR /&gt;close(22)&lt;BR /&gt;&lt;BR /&gt;open(33,file='jA.txt')&lt;BR /&gt;do i = 1, nEnv&lt;BR /&gt;read(33,*) jA(i)&lt;BR /&gt;end do&lt;BR /&gt;close(33)&lt;BR /&gt;&lt;BR /&gt;open(44,file='iA.txt')&lt;BR /&gt;do i = 1, nDim+1&lt;BR /&gt;read(44,*) iA(i) &lt;BR /&gt;end do&lt;BR /&gt;close(44)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;! analysis, symbolic factorization, numerical factorization and solve&lt;BR /&gt;! Ax = b&lt;BR /&gt;phase = 13 &lt;BR /&gt;call pardiso(pt, maxfct, mnum, mtype, phase, nDim, A, iA, jA, &amp;amp;&lt;BR /&gt;idum, nrhs, iparm, msglvl, b, x, error)&lt;BR /&gt;! x = inv(A)b&lt;BR /&gt;if (error .NE. 0) then&lt;BR /&gt;write(*,*) 'The following ERROR was detected: ', error, 'Secant Stiff routine 1'&lt;BR /&gt;stop&lt;BR /&gt;end if&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;do i = 1, 30 &lt;BR /&gt;print *, 'x',i, '= ', x(i)&lt;BR /&gt;end do&lt;BR /&gt;&lt;BR /&gt;! Termination and release of memory&lt;BR /&gt;phase = -1 ! release internal memory&lt;BR /&gt;call pardiso (pt, maxfct, mnum, mtype, phase, nDim, ddum, idum, idum, &amp;amp;&lt;BR /&gt;idum, nrhs, iparm, msglvl, ddum, ddum, error) &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;! deallocate all &lt;BR /&gt;if ( allocated(A) ) deallocate( A )&lt;BR /&gt;if ( allocated(jA) ) deallocate( jA )&lt;BR /&gt;if ( allocated(iA) ) deallocate( iA )&lt;BR /&gt;if ( allocated(b) ) deallocate( b )&lt;BR /&gt;if ( allocated(x) ) deallocate( x )&lt;BR /&gt;&lt;BR /&gt;end program Inverse_Test&lt;BR /&gt;&lt;BR /&gt;If you want to run it, I will give you txt data via email&lt;BR /&gt;Thanks a lot&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Sun, 16 Aug 2009 18:57:53 GMT</pubDate>
    <dc:creator>ceo012</dc:creator>
    <dc:date>2009-08-16T18:57:53Z</dc:date>
    <item>
      <title>forrtl:severe: program exception - access violation</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/forrtl-severe-program-exception-access-violation/m-p/893803#M10645</link>
      <description>OS: Window XP (32 bit.)&lt;BR /&gt;Processor: Intel Core 2&lt;BR /&gt;Memory: 3 GB&lt;BR /&gt;Version: Visual Studio 2005 Prof. Ed.&lt;BR /&gt;IVF 11.1.038&lt;BR /&gt;MKL 10.2.1 &lt;BR /&gt;&lt;BR /&gt;Forrtl:severe&amp;lt;157&amp;gt;: Program Exception  access violation&lt;BR /&gt;Mkl_intel_thread. 1029620E. Unknown&lt;BR /&gt;&lt;BR /&gt;I solved linear systems of equation Ax=b, where A is positive definite and 108 by 108 and b is 108 by 1 vector.&lt;BR /&gt;I got answer well via previous version IVF 11.0.078 and MKL 10.0.1, but I cant have the answer via new version, IVF 11.1.038 and MKL 10.2.1.&lt;BR /&gt;Whats the problem?&lt;BR /&gt;&lt;BR /&gt;program Inverse_Test&lt;BR /&gt;implicit double precision (A-H, O-Z)&lt;BR /&gt;&lt;BR /&gt;integer nDim, i,j,k, nEnv&lt;BR /&gt;! Ax = b&lt;BR /&gt;integer,allocatable:: jA(:)&lt;BR /&gt;integer,allocatable:: iA(:) &lt;BR /&gt;real*8, allocatable:: A(:)&lt;BR /&gt;real*8, allocatable:: b(:)&lt;BR /&gt;real*8, allocatable:: x(:) &lt;BR /&gt;&lt;BR /&gt;! parameters for Intel Math. Kernel Lib.&lt;BR /&gt;integer*4 pt(64) ! solver internal data address pointer for 32 bit operating system&lt;BR /&gt;integer*8 ddum ! dummy&lt;BR /&gt;integer maxfct ! max. number of factors with identical nonzero sparsity structure&lt;BR /&gt;integer mnum ! actual matrix for the solution phase&lt;BR /&gt;integer mtype ! matrix type 2: real &amp;amp; symmetric positive definite &lt;BR /&gt;integer phase ! controls the execution of the solver&lt;BR /&gt;integer nrhs ! dimension of right hand side&lt;BR /&gt;integer error ! error&lt;BR /&gt;integer msglvl ! statistics data&lt;BR /&gt;integer*4 iparm(64) ! parameter array for MKL &lt;BR /&gt;integer omp_get_max_threads ! get max thread&lt;BR /&gt;EXTERNAL omp_get_max_threads&lt;BR /&gt;&lt;BR /&gt;nDim = 108&lt;BR /&gt;nEnv = 4014&lt;BR /&gt;! allocation&lt;BR /&gt;allocate ( A(nEnv) )&lt;BR /&gt;allocate ( jA(nEnv) )&lt;BR /&gt;allocate ( iA(nDim + 1) )&lt;BR /&gt;allocate ( b(nDim) )&lt;BR /&gt;allocate ( x(nDim) )&lt;BR /&gt;&lt;BR /&gt;data nrhs /1/, maxfct /1/, mnum /1/&lt;BR /&gt;&lt;BR /&gt;mtype = 2 ! real and SPD&lt;BR /&gt;! initialize PARDISO (solve inverse matrix )&lt;BR /&gt;call pardisoinit(pt, mtype, iparm)&lt;BR /&gt;iparm(1) = 1 ! no solver default&lt;BR /&gt;iparm(2) = 2 ! 2 fill-in reordering from METIS&lt;BR /&gt;iparm(3) = omp_get_max_threads()! number of processors&lt;BR /&gt;iparm(7) = 16 ! default logical fortran unit number for output&lt;BR /&gt;iparm(8) = 9 ! numbers of iterative refinement steps&lt;BR /&gt;iparm(10)= 13 ! perturbe the pivot elements with 1E-13&lt;BR /&gt;msglvl = 0 ! don't print statistical information&lt;BR /&gt;&lt;BR /&gt;! initialize matrix and vector&lt;BR /&gt;! Ax = b &lt;BR /&gt;A = 0.d0&lt;BR /&gt;b = 0.d0&lt;BR /&gt;x = 0.d0&lt;BR /&gt;&lt;BR /&gt;! read data from txt files&lt;BR /&gt;open(11,file='A.txt')&lt;BR /&gt;do i = 1, nEnv&lt;BR /&gt;read(11,*) A(i)&lt;BR /&gt;end do&lt;BR /&gt;close(11)&lt;BR /&gt;&lt;BR /&gt;open(22,file='b.txt')&lt;BR /&gt;do i = 1, nDim&lt;BR /&gt;read(22,*) b(i) &lt;BR /&gt;end do&lt;BR /&gt;close(22)&lt;BR /&gt;&lt;BR /&gt;open(33,file='jA.txt')&lt;BR /&gt;do i = 1, nEnv&lt;BR /&gt;read(33,*) jA(i)&lt;BR /&gt;end do&lt;BR /&gt;close(33)&lt;BR /&gt;&lt;BR /&gt;open(44,file='iA.txt')&lt;BR /&gt;do i = 1, nDim+1&lt;BR /&gt;read(44,*) iA(i) &lt;BR /&gt;end do&lt;BR /&gt;close(44)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;! analysis, symbolic factorization, numerical factorization and solve&lt;BR /&gt;! Ax = b&lt;BR /&gt;phase = 13 &lt;BR /&gt;call pardiso(pt, maxfct, mnum, mtype, phase, nDim, A, iA, jA, &amp;amp;&lt;BR /&gt;idum, nrhs, iparm, msglvl, b, x, error)&lt;BR /&gt;! x = inv(A)b&lt;BR /&gt;if (error .NE. 0) then&lt;BR /&gt;write(*,*) 'The following ERROR was detected: ', error, 'Secant Stiff routine 1'&lt;BR /&gt;stop&lt;BR /&gt;end if&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;do i = 1, 30 &lt;BR /&gt;print *, 'x',i, '= ', x(i)&lt;BR /&gt;end do&lt;BR /&gt;&lt;BR /&gt;! Termination and release of memory&lt;BR /&gt;phase = -1 ! release internal memory&lt;BR /&gt;call pardiso (pt, maxfct, mnum, mtype, phase, nDim, ddum, idum, idum, &amp;amp;&lt;BR /&gt;idum, nrhs, iparm, msglvl, ddum, ddum, error) &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;! deallocate all &lt;BR /&gt;if ( allocated(A) ) deallocate( A )&lt;BR /&gt;if ( allocated(jA) ) deallocate( jA )&lt;BR /&gt;if ( allocated(iA) ) deallocate( iA )&lt;BR /&gt;if ( allocated(b) ) deallocate( b )&lt;BR /&gt;if ( allocated(x) ) deallocate( x )&lt;BR /&gt;&lt;BR /&gt;end program Inverse_Test&lt;BR /&gt;&lt;BR /&gt;If you want to run it, I will give you txt data via email&lt;BR /&gt;Thanks a lot&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 16 Aug 2009 18:57:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/forrtl-severe-program-exception-access-violation/m-p/893803#M10645</guid>
      <dc:creator>ceo012</dc:creator>
      <dc:date>2009-08-16T18:57:53Z</dc:date>
    </item>
  </channel>
</rss>

