多线程开发

如何在offload程序中控制协处理器的执行环境

offload编译模式下Intel编译器的offload运行时系统提供了两种机制让主机CPU程序对协处理器上的执行环境进行控制:

  1. 在主机系统上设置环境变量,然后将这些环境变量传递到协处理器上
  2. 在主机程序中调用相应的运行环境控制函数

 

环境变量:

缺省情况下,当offload发生时运行时系统会把主机程序执行环境中的所有环境变量全部复制到协处理器的执行环境中。用户可以通过定义环境变量“MIC_ENV_PREFIX”的值来改变这一默认行为。当该环境变量被赋予某个特定值之后,offload运行时系统将不再复制全部主机环境变量,而改为只复制那些以“MIC_ENV_PREFIX”的值加上下划线为前缀的那些环境变量;而且,在协处理器执行环境中对应的环境变量将不会保留这些前缀。通过这种方式,用户就可以在主机系统和协处理器上对同一名字的环境变量使用不同的值。例如在主机系统中已如下方式设置环境变量:

 

MIC_ENV_PREFIX=ABC

OMP_NUM_THREADS=8

  • 开发人员
  • 学生
  • Linux*
  • C/C++
  • Fortran
  • 中级
  • 英特尔® Parallel Studio XE Composer Edition
  • Intel Parallel Composer XE
  • 开发工具
  • 并行计算
  • Using Intel® Advisor XE to Observe Memory Accesses Dynamically

    Intel® Advisor XE is the premiere tool from Intel for helping to parallelize your code, but it can also be used in other ways. For example, you can take advantage of the Intel Advisor XE special annotation ANNOTATE_OBSERVE_USES to track all memory accesses to a particular variable.

     

    Assume you have a source file, foo.cpp, that contains an allocation point like:

    int * pArray = new int[size];

     

    You want to detect all accesses to the pArray elements that happen within the scope of a function bar()where bar() is invoked from bar.cpp.

  • 开发人员
  • Linux*
  • Microsoft Windows* (XP, Vista, 7)
  • Microsoft Windows* 8.x
  • C/C++
  • Fortran
  • 英特尔® Advisor XE
  • Featured Product Support
  • Featured Support Topics
  • 调试
  • 并行计算
  • 线程
  • Intel Software Conference 2014

     A Intel Software Brasil realizou neste mês o Intel Software Conference 2014, que aconteceu na Universidade Estácio de Sá (Rio de Janeiro) nos dias 26 e 27 de Maio e no IMAM (São Paulo) nos dias 28,29 e 30 de Maio.

    Foram realizadas palestras e "round tables" ministradas por profissionais da Intel do Brasil, Estados Unidos e Alemanha cobrindo dois temas: Computação Paralela e de Alto Desempenho nos primeiros quatro dias (RJ e SP) e Desenvolvimento Android no último dia (somente em São Paulo).  

    Confira logo abaixo os slides das apresentações realizadas.

  • 开发人员
  • 合作伙伴
  • 教授
  • 学生
  • 安卓*
  • Linux*
  • 服务器
  • C#
  • C/C++
  • Fortran
  • 高级
  • 中级
  • 英特尔® Parallel Studio XE
  • Intel® Advanced Vector Extensions
  • 英特尔® SIMD 流指令扩展
  • 消息传递接口
  • OpenCL*
  • OpenMP*
  • 优化
  • 并行计算
  • 矢量化
  • How to use Intel Cilk Plus extension, to speed up your Android application with threading features

    Intel Cilk Plus is an important language extension of Intel Compiler, to help you implement multiple-threading easily and fast, to improve your application's performance on multi-core systems. While more and more cores on Android devices, it is also more important to efficiently use the multi-core features.
  • 开发人员
  • 教授
  • 学生
  • 安卓*
  • 安卓*
  • C/C++
  • 中级
  • 英特尔® INDE
  • 英特尔® C++ 编译器
  • 英特尔® Parallel Studio XE
  • 英特尔® System Studio
  • VersionSpecific
  • PlatformSpecific
  • 开发工具
  • 许可协议: 

    Controlling floating-point modes when using Intel® Threading Building Blocks

    Intel® Threading Building Blocks (Intel® TBB) 4.2 Update 4 introduced enhanced support for managing floating-pointing settings. Floating-point settings can now be specified at the invocation of most parallel algorithms (including flow::graph). In this blog I want to pay attention to some peculiarities and details of the new feature and overall floating-point settings support in Intel TBB. This blog is not devoted to general floating-point support in the CPU.

  • 开发人员
  • 英特尔 AppUp® 开发人员
  • 合作伙伴
  • 教授
  • 学生
  • 安卓*
  • Linux*
  • Microsoft Windows* (XP, Vista, 7)
  • Microsoft Windows* 8.x
  • Unix*
  • 安卓*
  • 服务器
  • Windows*
  • C/C++
  • 高级
  • 入门级
  • 中级
  • Intel® Threading Building Blocks
  • tbb
  • floating-point
  • fp
  • FPU
  • floating-point settings
  • FP settings
  • FPU settings
  • FPU controls
  • CPU settings
  • CPU controls
  • 开发工具
  • 教育
  • 开源
  • 并行计算
  • 线程
  • 如何使用Intel Cilk Plus扩展,加速你的Android程序的多核性能

    Intel Cilk Plus是英特尔编译器的一个语法扩展特性,用于快速简单的实现多线程,从而提升应用程序在多核系统上的性能。随着Android系统的核心越来越多,合理的利用其多核心的特性也显得越来越重要。
  • 开发人员
  • 教授
  • 学生
  • 安卓*
  • 安卓*
  • C/C++
  • 中级
  • 英特尔® INDE
  • 英特尔® C++ 编译器
  • 英特尔® System Studio
  • 开发工具
  • 订阅 多线程开发