From gcollange at gmail.com  Mon Jan  8 14:41:11 2018
From: gcollange at gmail.com (Guillaume Collange)
Date: Mon, 8 Jan 2018 14:41:11 +0100
Subject: [Rd] Fwd: R/MKL Intel 2018 Compatibility
In-Reply-To: <CAJ48xmBo+R8ye36A2UnPXiaq4BCqvJ5d5y6Q8AqFaZC11CtriQ@mail.gmail.com>
References: <CAJ48xmAzJSZLdWmXBa7vMLAb8FZa1qT6ud0khaU+Oxf6ytCckw@mail.gmail.com>
 <CAJ48xmBo+R8ye36A2UnPXiaq4BCqvJ5d5y6Q8AqFaZC11CtriQ@mail.gmail.com>
Message-ID: <CAJ48xmAT9pPictc46Z_K+=EqCYzY-42J6UdhE=qO2sB-ShyQaA@mail.gmail.com>

Dear all,



I would like to submit an issue that we are facing.



Indeed, in our environment, we are optimizing the R code to speed up some
mathematical calculations as matrix products using the INTEL libraries (
MKL) ( https://software.intel.com/en-us/mkl )



With the last version of the MKL libraries Intel 2018, we are facing to an
issue with *all INTERNAL command* that are executing in R. The R console is
freezing executing a process at 100% and never stop!!! It?s really an issue
for us.



As example, we can reproduce the error with *crossprod. Crossprod *which is
a wrapper of BLAS GEMM (optimized with MKL libraries), in this function it
seems that variables are not protected ( PROTECT(); UNPROTECT() ), see the
screenshot below, which is a recommendation for external commands:



Picture1


*RECOMMANDATION*

*Picture2*

*Code of CROSSPROD*

 Picture 3



If we are recoding the CROSSPROD function with PROTECTT

No more issues?





Do you have any idea to solve this bug? Any recommendations?





Thank you by advance for your help.





Best regards,

Guillaume Collange



-- 
Guillaume Collange
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Picture1.png
Type: image/png
Size: 95784 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-devel/attachments/20180108/62b1680d/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Picture2.png
Type: image/png
Size: 100803 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-devel/attachments/20180108/62b1680d/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Picture3.png
Type: image/png
Size: 101400 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-devel/attachments/20180108/62b1680d/attachment-0002.png>


[Rd] Fwd: R/MKL Intel 2018 Compatibility
Guillaume Collange