<?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 serial MKL with openmp in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/serial-MKL-with-openmp/m-p/812521#M4051</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Regarding your comment:&lt;BR /&gt;&lt;BR /&gt;"This MKL behavior is strange, because I'm using the sequential MKL from 
the link advisor, and I set bothOMP_NUM_THREADS=1 andOMP_MAX_THREADS=1
 in my .profile file, and use&lt;P&gt;!$OMP PARALLEL NUM_THREADS(4) only for the loop I want to parallelize."&lt;/P&gt;It seems you prevent the parallelization yourself by setting OMP_NUM_THREADS to 1.&lt;BR /&gt;Could you please try setting it to 4 (keeping the link line the same)?&lt;BR /&gt;Also I don't think you need that OMP_MAX_THREADS at all.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Vladimir&lt;BR /&gt;</description>
    <pubDate>Wed, 30 May 2012 06:02:56 GMT</pubDate>
    <dc:creator>Vladimir_Petrov__Int</dc:creator>
    <dc:date>2012-05-30T06:02:56Z</dc:date>
    <item>
      <title>serial MKL with openmp</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/serial-MKL-with-openmp/m-p/812518#M4048</link>
      <description>Hi,&lt;DIV&gt;I have the following problem: I want to use MKL, mainly for the Pardiso direct solver, in a relatively large flow simulator.For a part of the code, unrelated to MKL/pardiso, I want to use openmp to parallelize certain CPU intensive loops. I can compile the code without MKL and see nearly optimal linear scaling of my parallelized loop when I compile with openmp. However, when I link to MKL, every other part of the code becomes significantly slower in terms of total CPU time. The wall clock time of a simulation may be slightly reduced, but it seems MKL uses some inefficient attempts at parallelization that result in much higher CPU cost. As a result, I want to disable all MKL parallelization, if only to test the scaling of the parallelization that I implement explicitely myself.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;This MKL behavior is strange, because I'm using the sequential MKL from the link advisor, and I set bothOMP_NUM_THREADS=1 andOMP_MAX_THREADS=1 in my .profile file, and use&lt;P&gt;!$OMP PARALLEL NUM_THREADS(4) only for the loop I want to parallelize.&lt;/P&gt;&lt;P&gt;How can I use the -openmp flag in a makefile for individual modules/subroutines, without it somehow applying to all MKL routines. I'm pasting the full makefile below for completeness, as well as the evironment settings.&lt;/P&gt;&lt;P&gt;--J&lt;/P&gt;&lt;P&gt;.SUFFIXES: $(SUFFIXES) .f90&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;FC   = /usr/bin/ifort&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;FAST  = -O3 -m64 -AVX&lt;/P&gt;
&lt;P&gt;FASTT  = -O3 -m64 -AVX -openmp&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;OBJDIR = Obj/&lt;/P&gt;
&lt;P&gt;MOD		= Mod/&lt;/P&gt;
&lt;P&gt;GEO   = Geo/&lt;/P&gt;
&lt;P&gt;DIFF  = Diff/&lt;/P&gt;
&lt;P&gt;COMM  = Comm/&lt;/P&gt;
&lt;P&gt;DGM   = Dgm/&lt;/P&gt;
&lt;P&gt;SOLVER = Solver/&lt;/P&gt;
&lt;P&gt;FLUID  = Fluid/&lt;/P&gt;
&lt;P&gt;FLASH  = Flash/&lt;/P&gt;
&lt;P&gt;MKLROOT = /opt/intel/composer_xe_2011_sp1.9.289/mkl/&lt;/P&gt;
&lt;P&gt;# MKL =-I$(MKLROOT)/include/intel64/lp64 -I$(MKLROOT)/include -L$(MKLROOT)/lib $(MKLROOT)/lib/libmkl_blas95_lp64.a $(MKLROOT)/lib/libmkl_lapack95_lp64.a -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -openmp -lpthread -lm&lt;/P&gt;
&lt;P&gt;# MKL = -I$(MKLROOT)/include -L$(MKLROOT)/lib -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread -lm&lt;/P&gt;
&lt;P&gt;MKL = -I$(MKLROOT)/include -L$(MKLROOT)/lib -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lm&lt;/P&gt;
&lt;P&gt;# MKL = -I$(MKLROOT)/include -L$(MKLROOT)/lib -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -openmp -lpthread -lm&lt;/P&gt;
&lt;P&gt;# MKL = -I$(MKLROOT)/include -L$(MKLROOT)/lib -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -lpthread -lm&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;OBJS = $(OBJDIR)mod_mesh.o     $(OBJDIR)mod_initializations.o\\&lt;/P&gt;
&lt;P&gt;    $(OBJDIR)gas.o       $(OBJDIR)mod_fluid.o\\&lt;/P&gt;
&lt;P&gt;    $(OBJDIR)mod_init_data.o   $(OBJDIR)mod_variables.o\\&lt;/P&gt;
&lt;P&gt;    $(OBJDIR)mod_peng_rob_eos.o $(OBJDIR)mod_viscosity.o\\&lt;/P&gt;
&lt;P&gt;    $(OBJDIR)mod_linear_solver.o $(OBJDIR)mod_inv_bk.o\\&lt;/P&gt;
&lt;P&gt;    $(OBJDIR)mod_comp_matrix.o  $(OBJDIR)mod_flash.o\\&lt;/P&gt;
&lt;P&gt;    $(OBJDIR)mod_comp_fluxes.o  $(OBJDIR)mod_comp_flow.o\\&lt;/P&gt;
&lt;P&gt;       $(OBJDIR)mod_slope_limiter.o\\&lt;/P&gt;
&lt;P&gt;    $(OBJDIR)mod_time.o     $(OBJDIR)mod_diffusion.o&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;TARGET = CHOMPFRS3D.e&lt;/P&gt;
&lt;P&gt;all : $(TARGET)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;CHOMPFRS3D.e : $(OBJS)&lt;/P&gt;
&lt;P&gt;	$(FC) $(FASTT) -module $(MOD) $(MLKLIB) $(MKL) $(OBJDIR)$** -o $@ &lt;/P&gt;
&lt;P&gt;#1------------------------------------------------------&lt;/P&gt;
&lt;P&gt;$(OBJDIR)gas.o : $(OBJDIR)mod_mesh.o      $(OBJDIR)mod_initializations.o\\&lt;/P&gt;
&lt;P&gt;          $(OBJDIR)mod_fluid.o     $(OBJDIR)mod_init_data.o\\&lt;/P&gt;
&lt;P&gt;          $(OBJDIR)mod_variables.o   $(OBJDIR)mod_peng_rob_eos.o\\&lt;/P&gt;
&lt;P&gt;          $(OBJDIR)mod_viscosity.o   $(OBJDIR)mod_inv_bk.o\\&lt;/P&gt;
&lt;P&gt;          $(OBJDIR)mod_linear_solver.o $(OBJDIR)mod_comp_matrix.o\\&lt;/P&gt;
&lt;P&gt;          $(OBJDIR)mod_comp_fluxes.o  $(OBJDIR)mod_comp_flow.o\\&lt;/P&gt;
&lt;P&gt;          $(OBJDIR)mod_diffusion.o   $(OBJDIR)mod_time.o gas.f90&lt;/P&gt;
&lt;P&gt;	$(FC) $(FAST) $? -c -module $(MOD) -o $@&lt;/P&gt;
&lt;P&gt;#=======================================================&lt;/P&gt;
&lt;P&gt;$(OBJDIR)mod_initializations.o : $(OBJDIR)mod_mesh.o\\&lt;/P&gt;
&lt;P&gt;                 $(OBJDIR)mod_fluid.o\\&lt;/P&gt;
&lt;P&gt;                 $(OBJDIR)mod_init_data.o\\&lt;/P&gt;
&lt;P&gt;                 $(OBJDIR)mod_variables.o\\&lt;/P&gt;
&lt;P&gt;                 $(OBJDIR)mod_peng_rob_eos.o\\&lt;/P&gt;
&lt;P&gt;                 $(OBJDIR)mod_viscosity.o\\&lt;/P&gt;
&lt;P&gt;                 $(OBJDIR)mod_linear_solver.o\\&lt;/P&gt;
&lt;P&gt;                 $(OBJDIR)mod_inv_bk.o\\&lt;/P&gt;
&lt;P&gt;                 $(OBJDIR)mod_flash.o\\&lt;/P&gt;
&lt;P&gt;                 $(OBJDIR)mod_comp_fluxes.o\\&lt;/P&gt;
&lt;P&gt;                 $(COMM)mod_initializations.f90&lt;/P&gt;
&lt;P&gt;	$(FC) $(FAST) $? -c -module $(MOD) -o $@&lt;/P&gt;
&lt;P&gt;#-------------------------------------------------------&lt;/P&gt;
&lt;P&gt;$(OBJDIR)mod_mesh.o : $(GEO)mod_mesh.f90&lt;/P&gt;
&lt;P&gt;	$(FC) $(FAST) $? -c -module $(MOD) -o $@&lt;/P&gt;
&lt;P&gt;$(GEO)mod_mesh.f90 : $(GEO)read_mesh.f90\\&lt;/P&gt;
&lt;P&gt;           $(GEO)comp_dist_vol.f90&lt;/P&gt;
&lt;P&gt;#-------------------------------------------------------&lt;/P&gt;
&lt;P&gt;$(OBJDIR)mod_fluid.o : $(OBJDIR)mod_mesh.o\\&lt;/P&gt;
&lt;P&gt;            $(FLUID)mod_fluid.f90&lt;/P&gt;
&lt;P&gt;	$(FC) $(FAST) $? -c -module $(MOD) -o $@&lt;/P&gt;
&lt;P&gt;#-------------------------------------------------------&lt;/P&gt;
&lt;P&gt;$(OBJDIR)mod_peng_rob_eos.o : $(OBJDIR)mod_mesh.o $(OBJDIR)mod_fluid.o\\&lt;/P&gt;
&lt;P&gt;              $(OBJDIR)mod_variables.o\\&lt;/P&gt;
&lt;P&gt;               $(FLUID)mod_peng_rob_eos.f90&lt;/P&gt;
&lt;P&gt;	$(FC) $(FAST) $? -c -module $(MOD) -o $@&lt;/P&gt;
&lt;P&gt;#-------------------------------------------------------&lt;/P&gt;
&lt;P&gt;$(OBJDIR)mod_init_data.o : $(OBJDIR)mod_mesh.o\\&lt;/P&gt;
&lt;P&gt;           $(OBJDIR)mod_peng_rob_eos.o\\&lt;/P&gt;
&lt;P&gt;                 $(OBJDIR)mod_variables.o\\&lt;/P&gt;
&lt;P&gt;              $(FLUID)mod_init_data.f90&lt;/P&gt;
&lt;P&gt;	$(FC) $(FAST) $? -c -module $(MOD) -o $@&lt;/P&gt;
&lt;P&gt;#-------------------------------------------------------&lt;/P&gt;
&lt;P&gt;$(OBJDIR)mod_variables.o : $(OBJDIR)mod_mesh.o\\&lt;/P&gt;
&lt;P&gt;              $(DGM)mod_variables.f90&lt;/P&gt;
&lt;P&gt;	$(FC) $(FAST) $? -c -module $(MOD) -o $@&lt;/P&gt;
&lt;P&gt;#-------------------------------------------------------&lt;/P&gt;
&lt;P&gt;$(OBJDIR)mod_viscosity.o :  $(OBJDIR)mod_mesh.o\\&lt;/P&gt;
&lt;P&gt;                $(OBJDIR)mod_fluid.o\\&lt;/P&gt;
&lt;P&gt;                $(OBJDIR)mod_variables.o\\&lt;/P&gt;
&lt;P&gt;                $(OBJDIR)mod_init_data.o\\&lt;/P&gt;
&lt;P&gt;                $(FLUID)mod_viscosity.f90&lt;/P&gt;
&lt;P&gt;	$(FC) $(FAST) $? -c -module $(MOD) -o $@&lt;/P&gt;
&lt;P&gt;#-------------------------------------------------------&lt;/P&gt;
&lt;P&gt;$(OBJDIR)mod_flash.o : $(OBJDIR)mod_mesh.o\\&lt;/P&gt;
&lt;P&gt;            $(OBJDIR)mod_variables.o\\&lt;/P&gt;
&lt;P&gt;            $(OBJDIR)mod_init_data.o\\&lt;/P&gt;
&lt;P&gt;            $(OBJDIR)mod_fluid.o\\&lt;/P&gt;
&lt;P&gt;                  $(OBJDIR)mod_viscosity.o\\&lt;/P&gt;
&lt;P&gt;            $(OBJDIR)mod_diffusion.o\\&lt;/P&gt;
&lt;P&gt;            $(FLASH)mod_flash.f90&lt;/P&gt;
&lt;P&gt;	$(FC) $(FASTT) $? -c -module $(MOD) -o $@&lt;/P&gt;
&lt;P&gt;$(FLASH)mod_flash.f90 : $(FLASH)stability.f90&lt;/P&gt;
&lt;P&gt;$(FLASH)mod_flash.f90 : $(FLASH)flash2f.f90&lt;/P&gt;
&lt;P&gt;$(FLASH)mod_flash.f90 : $(FLASH)flash3f.f90&lt;/P&gt;
&lt;P&gt;$(FLASH)mod_flash.f90 : $(FLASH)flash2f_PR.f90&lt;/P&gt;
&lt;P&gt;$(FLASH)mod_flash.f90 : $(FLASH)PressPMV.f90&lt;/P&gt;
&lt;P&gt;$(FLASH)mod_flash.f90 : $(FLASH)eos.f90&lt;/P&gt;
&lt;P&gt;$(FLASH)mod_flash.f90 : $(FLASH)PressPMV_PR.f90&lt;/P&gt;
&lt;P&gt;$(FLASH)mod_flash.f90 : $(FLASH)flash_nodes.f90&lt;/P&gt;
&lt;P&gt;$(FLASH)mod_flash.f90 : $(FLASH)flash_stability.f90&lt;/P&gt;
&lt;P&gt;$(FLASH)mod_flash.f90 : $(FLASH)flash_stability_PR.f90&lt;/P&gt;
&lt;P&gt;#-------------------------------------------------------&lt;/P&gt;
&lt;P&gt;$(OBJDIR)mod_linear_solver.o : $(OBJDIR)mod_mesh.o\\&lt;/P&gt;
&lt;P&gt;                 $(SOLVER)mod_linear_solver.f90&lt;/P&gt;
&lt;P&gt;	$(FC) $(FAST) $? -c -module $(MOD) -o $@&lt;/P&gt;
&lt;P&gt;#-------------------------------------------------------&lt;/P&gt;
&lt;P&gt;$(OBJDIR)mod_slope_limiter.o : $(OBJDIR)mod_mesh.o\\&lt;/P&gt;
&lt;P&gt;              $(DGM)mod_slope_limiter.f90&lt;/P&gt;
&lt;P&gt;	$(FC) $(FAST) $? -c -module $(MOD) -o $@&lt;/P&gt;
&lt;P&gt;#-------------------------------------------------------&lt;/P&gt;
&lt;P&gt;$(OBJDIR)mod_inv_bk.o : $(OBJDIR)mod_mesh.o\\&lt;/P&gt;
&lt;P&gt;              $(OBJDIR)mod_variables.o\\&lt;/P&gt;
&lt;P&gt;              $(OBJDIR)mod_init_data.o\\&lt;/P&gt;
&lt;P&gt;              $(DGM)mod_inv_bk.f90&lt;/P&gt;
&lt;P&gt;	$(FC) $(FAST) $? -c -module $(MOD) -o $@&lt;/P&gt;
&lt;P&gt;#-------------------------------------------------------&lt;/P&gt;
&lt;P&gt;$(OBJDIR)mod_comp_flow.o : $(OBJDIR)mod_mesh.o\\&lt;/P&gt;
&lt;P&gt;              $(OBJDIR)mod_variables.o\\&lt;/P&gt;
&lt;P&gt;              $(OBJDIR)mod_slope_limiter.o\\&lt;/P&gt;
&lt;P&gt;              $(OBJDIR)mod_init_data.o\\&lt;/P&gt;
&lt;P&gt;              $(DGM)mod_comp_flow.f90&lt;/P&gt;
&lt;P&gt;	$(FC) $(FAST) $? -c -module $(MOD) -o $@&lt;/P&gt;
&lt;P&gt;#-------------------------------------------------------&lt;/P&gt;
&lt;P&gt;$(OBJDIR)mod_time.o : $(OBJDIR)mod_mesh.o\\&lt;/P&gt;
&lt;P&gt;                 $(OBJDIR)mod_fluid.o\\&lt;/P&gt;
&lt;P&gt;            $(OBJDIR)mod_variables.o\\&lt;/P&gt;
&lt;P&gt;            $(OBJDIR)mod_init_data.o\\&lt;/P&gt;
&lt;P&gt;            $(COMM)mod_time.f90&lt;/P&gt;
&lt;P&gt;	$(FC) $(FAST) $? -c -module $(MOD) -o $@&lt;/P&gt;
&lt;P&gt;#-------------------------------------------------------&lt;/P&gt;
&lt;P&gt;$(OBJDIR)mod_comp_fluxes.o : $(OBJDIR)mod_mesh.o\\&lt;/P&gt;
&lt;P&gt;                $(OBJDIR)mod_variables.o\\&lt;/P&gt;
&lt;P&gt;                $(OBJDIR)mod_init_data.o\\&lt;/P&gt;
&lt;P&gt;                $(OBJDIR)mod_inv_bk.o\\&lt;/P&gt;
&lt;P&gt;                $(OBJDIR)mod_diffusion.o\\&lt;/P&gt;
&lt;P&gt;                $(DGM)mod_comp_fluxes.f90&lt;/P&gt;
&lt;P&gt;	$(FC) $(FAST) $? -c -module $(MOD) -o $@&lt;/P&gt;
&lt;P&gt;#-------------------------------------------------------&lt;/P&gt;
&lt;P&gt;$(OBJDIR)mod_diffusion.o : $(OBJDIR)mod_mesh.o\\&lt;/P&gt;
&lt;P&gt;               $(OBJDIR)mod_variables.o\\&lt;/P&gt;
&lt;P&gt;               $(OBJDIR)mod_linear_solver.o\\&lt;/P&gt;
&lt;P&gt;               $(OBJDIR)mod_fluid.o\\&lt;/P&gt;
&lt;P&gt;                $(OBJDIR)mod_init_data.o\\&lt;/P&gt;
&lt;P&gt;                $(DIFF)mod_diffusion.f90&lt;/P&gt;
&lt;P&gt;	$(FC) $(FAST) $? -c -module $(MOD) -o $@&lt;/P&gt;
&lt;P&gt;#-------------------------------------------------------&lt;/P&gt;
&lt;P&gt;$(OBJDIR)mod_comp_matrix.o : $(OBJDIR)mod_mesh.o\\&lt;/P&gt;
&lt;P&gt;                $(OBJDIR)mod_variables.o\\&lt;/P&gt;
&lt;P&gt;                $(OBJDIR)mod_init_data.o\\&lt;/P&gt;
&lt;P&gt;                $(OBJDIR)mod_peng_rob_eos.o\\&lt;/P&gt;
&lt;P&gt;                $(OBJDIR)mod_inv_bk.o\\&lt;/P&gt;
&lt;P&gt;                $(DGM)mod_comp_matrix.f90&lt;/P&gt;
&lt;P&gt;	$(FC) $(FAST) $? -c -module $(MOD) -o $@&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;clean :&lt;/P&gt;
&lt;P&gt;	@-rm Obj/*.o&lt;/P&gt;
&lt;P&gt;	@-rm CHOMPFRS3D.e&lt;/P&gt;
&lt;P&gt;	@-rm Mod/*.mod&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;P&gt;------- .profile content below:&lt;/P&gt;&lt;P&gt;export OMP_NUM_THREADS=1&lt;/P&gt;
&lt;P&gt;export OMP_MAX_THREADS=1&lt;/P&gt;
&lt;P&gt;export TEC_RS_2009=/usr/tecRS_2009_R2&lt;/P&gt;
&lt;P&gt;export FORT_FMT_RECL=2000&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;export DYLD_LIBRARY_PATH=/opt/intel/composer_xe_2011_sp1.9.289/compiler/lib:/opt/intel/composer_xe_2011_sp1.9.289/mkl/lib:/opt/intel/Compiler/11.1/088/Frameworks/mkl/lib/em64t:/opt/intel/Compiler/11.1/08$&lt;/P&gt;
&lt;P&gt;export LD_LIBRARY_PATH=/opt/intel/composer_xe_2011_sp1.9.289/mkl/lib&lt;/P&gt;
&lt;P&gt;export LIBRARY_PATH=/opt/intel/composer_xe_2011_sp1.9.289/compiler/lib:/opt/intel/composer_xe_2011_sp1.9.289/mkl/lib&lt;/P&gt;
&lt;P&gt;export NLSPATH=/opt/intel/composer_xe_2011_sp1.9.289/mkl/lib/locale/%l_%t/%N&lt;/P&gt;
&lt;P&gt;export MANPATH=/opt/intel/composer_xe_2011_sp1.9.289/man/en_US:/opt/local/share/man:/opt/local/man:&lt;/P&gt;
&lt;P&gt;export INCLUDE=/opt/intel/composer_xe_2011_sp1.9.289/mkl/include&lt;/P&gt;
&lt;P&gt;export FPATH=/opt/intel/composer_xe_2011_sp1.9.289/mkl/include&lt;/P&gt;
&lt;P&gt;export CPATH=/opt/intel/composer_xe_2011_sp1.9.289/mkl/include&lt;/P&gt;
&lt;P&gt;export KMP_AFFINITY=compact,1&lt;/P&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 29 May 2012 23:38:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/serial-MKL-with-openmp/m-p/812518#M4048</guid>
      <dc:creator>moortgatgmail_com</dc:creator>
      <dc:date>2012-05-29T23:38:01Z</dc:date>
    </item>
    <item>
      <title>serial MKL with openmp</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/serial-MKL-with-openmp/m-p/812519#M4049</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Iam movingthis issueto the MKL forum since your question is about MKL. &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Annalee&lt;BR /&gt;Intel Developer Support</description>
      <pubDate>Tue, 29 May 2012 23:49:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/serial-MKL-with-openmp/m-p/812519#M4049</guid>
      <dc:creator>Anonymous66</dc:creator>
      <dc:date>2012-05-29T23:49:09Z</dc:date>
    </item>
    <item>
      <title>serial MKL with openmp</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/serial-MKL-with-openmp/m-p/812520#M4050</link>
      <description>Hi &lt;LABEL&gt;&lt;A hoverintent_s="0" jquery1338343462481="57" hoverintent_t="undefined" rel="/en-us/services/profile/quick_profile.php?is_paid=&amp;amp;user_id=421468" href="http://software.intel.com/en-us/profile/421468/" class="basic"&gt;&lt;STRONG&gt;moortgatgmail.com&lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt;, &lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Could you please provide us a runable test case (including the code and hardware information)?&lt;BR /&gt;&lt;BR /&gt; from the line, MKL = -I$(MKLROOT)/include -L$(MKLROOT)/lib -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lm, you are using MKL sequential library. Theoretically, the serial MKL library should be notinfluence or be influenced by the other OpenMP code. &lt;BR /&gt;&lt;BR /&gt;If the test case are confidential, you can replywith "Private". &lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Ying&lt;/LABEL&gt;</description>
      <pubDate>Wed, 30 May 2012 02:12:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/serial-MKL-with-openmp/m-p/812520#M4050</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2012-05-30T02:12:36Z</dc:date>
    </item>
    <item>
      <title>serial MKL with openmp</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/serial-MKL-with-openmp/m-p/812521#M4051</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Regarding your comment:&lt;BR /&gt;&lt;BR /&gt;"This MKL behavior is strange, because I'm using the sequential MKL from 
the link advisor, and I set bothOMP_NUM_THREADS=1 andOMP_MAX_THREADS=1
 in my .profile file, and use&lt;P&gt;!$OMP PARALLEL NUM_THREADS(4) only for the loop I want to parallelize."&lt;/P&gt;It seems you prevent the parallelization yourself by setting OMP_NUM_THREADS to 1.&lt;BR /&gt;Could you please try setting it to 4 (keeping the link line the same)?&lt;BR /&gt;Also I don't think you need that OMP_MAX_THREADS at all.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Vladimir&lt;BR /&gt;</description>
      <pubDate>Wed, 30 May 2012 06:02:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/serial-MKL-with-openmp/m-p/812521#M4051</guid>
      <dc:creator>Vladimir_Petrov__Int</dc:creator>
      <dc:date>2012-05-30T06:02:56Z</dc:date>
    </item>
  </channel>
</rss>

