If you want to get parallel performance, you have to start writing parallel code, "says MIT computer-science professor Saman Amarasinghe."
MIT计算机科学的教授萨芒阿马拉辛赫说:“想要平行处理,就需要在编写代码时就平行编写。”
In the field of bioluminescence imaging, in order to accelerate simulation speed, a parallel code for Monte Carlo simulation of photon transport is developed.
在生物自发光成像领域,将基于蒙特卡罗方法的光子前向传输仿真进行并行化,提高了仿真的速度。
Optimization is an indispensably important step in the process of automatic parallel code generation, but the parallel code can have some practical value only after proper optimization.
在并行代码自动生成过程中,优化是不可或缺的重要环节,只有经过适当的优化处理,自动生成的并行程序才会具有一定的实用价值。
A further difficulty is the lack of tools for working with parallel code, such as compilers, to translate human-readable code into something a microprocessor can run, and debuggers to find mistakes.
还有一个长远的困难就是处理平行代码工具的匮乏,例如编译器可以将人可读的代码转变成一些微处理器能够运行的指令,并且调试者可以发现错误。
It is still important to consider the state used by those parallel methods, however, because the external code may not make the necessary synchronization guarantees.
不过,考虑这些并行方法使用的状态仍然很重要,因为外部代码可能不保证必要的同步运作。
What I try to do nowadays is to implement new ideas in parallel with the old ones, rather than mutating the existing code.
我现在的做法是保留旧代码的情况下并行实现新想法,而不是直接在旧代码上修改。
This article describes the approach taken by one team for including a subset of system test as part of our agile development environment and in parallel with code development activities.
本文介绍了团队所采用的将一组系统测试子集作为敏捷开发环境的一部分,并与代码开发活动并行的方法。
This code is very similar to what you might see in a functional programming language, with the additional benefit that it's automatically executed in parallel.
该代码可能与使用函数程序设计语言编写的那些很类似,不过它的额外优势在于该代码是自动并行执行的。
The code for expressing operations on parallel arrays is somewhat deceptive.
表示并行数组上的操作的代码有点欺骗性。
This parallel clustering system is called Pseudo remote threads because the threads are scheduled on the job dispatcher but the code within the threads is executed on a remote machine.
这种并行集群系统之所以被称为伪远程线程,是因为线程是在作业调度器上调度的,但线程内的代码却是在远程计算机上执行的。
Thanks to allocation groups, the XFS code will allow multiple threads and processes to continue to run in parallel, even if many of them are performing non-trivial IO on the same filesystem.
多亏了分配组,XFS代码将允许多个线程和进程持续以并行方式运行,即使它们中的许多线程和进程正在同一文件系统上执行大规模IO 操作。
If you've spent most of your programming career writing sequential code, you might have more trouble adapting to the parallel nature of the robotics programs than your kids will.
如果您长期以来都从事顺序代码的编写工作的话,那么您可能还不如您的孩子们那样顺利地适应机器人技术编程中的并行本质属性。
Automation is even more useful when doing parallel development, working on various branches of the code.
在多代码分支上进行并行开发时,自动化就更加有用了。
Concurrency, in the sense of running code in parallel, isn't actually that hard to do.
并发程序,从代码并行运行的意义上讲,并不难做到。
Today you have the Scala Parallel Collections that enable a programmer use existing Scala code and with minor changes gain the performance given by multi-core systems.
目前我们已经有了Scala并行集合,程序员只需小小改动现有的Scala代码就可以利用多核系统的性能优势。
With goroutines, parallel execution of code is easy.
有了goroutine,代码的并行执行就容易了。
The HPC Cloud Service evaluates the code, runs it in parallel Mathematica sessions, bundles up the results and notifies the user.
HPC云服务计算代码的值,运行在并行的Mathematica会话中,打包结果并通知用户。
"It's the beginning of a parallel genetic code," says Chin.
“这是平行遗传密码的开端。”Chin如是说。
Parallel portlet rendering attempts to execute the code for each portlet in parallel to speed up the rendering of the portal page.
并行portlet呈现试图并行的执行每个 portlet代码,以加速门户页面的呈现。
One of the reasons for the success of the MapReduce system is that it is designed to be a simple paradigm for writing code that needs to massively parallel.
MapReduce系统获得成功的原因之一是,它为编写需要大规模并行处理的代码提供了简单的编程模式。
This allows you to pass a parallel collection to existing (non-parallel) code bases and potentially use that code as is.
这将允许您传递一个并行集合给现有(非并行)代码库并按原样使用该代码。
They developed the code for different operating systems in parallel.
他们开发的代码可同时用于不同的操作系统。
Some of this parallelization of development was made possible through the use of source code management tools because of the ability to keep parallel lines of development synchronized.
由于使用源代码管理工具可以保持开发的同步并行进行,这样就可能实现开发的部分并行化。
This code computes the same result as the example in Listing 1, except in a parallel-friendly way.
此代码计算的结果与清单1中的示例相同,但采用并行友好的方式。
This means that developers can have many code changes running in parallel at once, with minimal effort required to start work on any individual task.
这意味着开发员可以一次性地并发处理多项代码更改,对私人工作需要极小的工作量。
Often, code bases also introduce the challenge of working on multiple versions or streams of the same code that represent different release versions in parallel.
通常,代码库也引入处理多个版本或者并行地表现不同发布版本的同一段代码流的挑战。
When a team develops in parallel, it's important to merge code back to the mainline (trunk) as often as feasible.
团队进行并行开发时,一定要以最高的频率将代码合并回干线(即主干)。
This problem also highlights one of the fundamental design principles when it comes to working with parallel data structures: Do not assume sequential execution of any code, ever.
这个问题也突显了并发数据结构的基本设计原则之一:决不要假设任何代码会连续执行。
This code computes the same result as the example in Listing 1, except in a parallel-friendly way.
这一代码计算出与清单1中的例子一样的结果,除了是以一种并行友好的方式来进行的这点不同之外。
Because these three blocks are alternatives (parallel paths through the code), each needs to be tracked separately at the points shown in bold.
因为这三个代码块是三选一的(在代码中是并行的路线),因此每一个代码块都需要分别跟踪,如黑体代码所示。
应用推荐