Loading...
You are not logged-in Login/Register





  • Posts   Search Threads
  • marcioyMay 12, 2011 8:01 PM PDT   
    use mkl95_precision, only: wp => dp

    Hi everyone,
    I am migrating from IMSL to MKL. I am trying to implement matrix-matrix and matrix-vector calculations using the BLAS.
    I have a doubt about what the following statements mean:
    (...)
    use mkl95_precision, only: wp => dp
    implicit none
    real(wp):: alpha, beta;  !just an example of variables;
    (...)
    It seems that alpha and beta are double precision variables. There is any difference between the above statement and the following declaration? Which one should I use?
    (...)
             double precision alpha, beta;
    (...)
    Thank you in advance
    Marcio Yamamoto


    Chao Y (Intel)May 13, 2011 12:05 AM PDT
    Rate
     
    use mkl95_precision, only: wp => dp

    Hi Marcio,

    You are right. They are double precision. Both of those two be compiled. If you write alpha, beta as:
    real(wp):: alpha, beta;

    It make it some easier to change to single precision code, and only need to change:
    wp => DP to wp = SP

    Thanks,
    Chao



    marcioyMay 13, 2011 12:26 AM PDT
    Rate
     
    use mkl95_precision, only: wp => dp

    Thank you, Chao!
    The guys in Intel work up to midnight??!! You guys are my heroes! ;)
    I was wondering if the statement  "real(wp):: alpha, beta;" creates any special data structures/object which was necessary for the MKL/BLAS calculation. But it is not the case, right? Both statements generate exactly the same data structure: double precision array?
    You should get some sleep, Chao.
    Thank you again.
    Marcio


Forum jump:  

Intel Software Network Forums Statistics

17,025 users have contributed to 48,319 threads and 172,758 posts to date.

In the past 24 hours, we have 11 new thread(s) 54 new posts(s), and 47 new user(s).

In the past 3 days, the most popular thread for everyone has been Optimalization of sine function\'s taylor expansion The most posts were made to Most likely, the issue is that The post with the most views is Optimalization of sine function\'s taylor expansion

Please welcome our newest member redfruit83


For more complete information about compiler optimizations, see our Optimization Notice.