Quantcast
Channel: Recent posts
Viewing all articles
Browse latest Browse all 190

How to use "mkl_mic_free_memory"?

$
0
0

Dear all,

I would like to use AO and CAO. I could enable/disable AO and set max. memory, but mkl_mic_free_memory is not working.

Here is an example:

      dim = 1024*8

      allocate (A(dim*dim))
      allocate (B(dim*dim))
      allocate (C(dim*dim))

      write(*,*) mkl_mic_enable()
      write(*,*) mkl_mic_set_max_memory( MKL_TARGET_MIC, 0, 1024*1024*6 )
      CALL DGEMM('N','N',dim,dim,dim,1.0d0,&            A,dim,B,dim,1.0d0,C,dim)
      write(*,*) mkl_mic_free_memory(MKL_TARGET_MIC, 0)
      write(*,*) mkl_mic_disable()

!DEC$ OFFLOAD_TRANSFER TARGET( MIC:0 )
     & IN(dim)& IN(A,B,C: LENGTH(dim*dim))

 

My card has 8GB memory. If AO reservs 6GB memory, there is not enough memory for offload transfer, and it generates offload error (9/13/16). All mkl_mic_... function return with 0 err code. When max. mem. only 4GB, it's working.

Is there any mistake?

(composer_xe_2013_sp1.2.144, composer_xe_2013_sp1.2.144, composer_xe_2015.0.024)

 


Viewing all articles
Browse latest Browse all 190

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>