如果对代码进行向量化,由于您正在将这些值当作字节进行处理,这意味着每条指令都要一次操作16 个值!
If you vectorize this code, since you are treating the values as bytes, that means that each instruction will operate on 16 values at once!
因此,至少从目前的代码使用方式来说,尚不能进行向量化。
Therefore, at least the way the code presently stands, it cannot be vectorized.
因此即使在向量化实现中,也有很多改进空间!
So even in this vectorized implementation, there is a lot of room for improvement!
事实上,核心转换代码实际几乎已经向量化了。
In fact, the core conversion code is actually almost already vectorized.
如果汇编器不能对程序进行向量化,它会自动试着调用等价MASS标量函数。
If the program is such that the compiler cannot vectorize, it automatically tries to call the equivalent MASS scalar functions.
这只是一个简单的范例,演示了自动向量化背后的基本思想。
This is only a simple example, demonstrating the basic idea behind auto-vectorization.
请记住:删除分支的目的在于对代码进行向量化。
Remember that the point of removing the branch was so that you can vectorize the code.
这个发行版包含很多变化—其中两个特别的变化是引入了新的优化框架(Treessa)和支持自动向量化(autovectorization)。
This release included a large number of changes-two in particular being the introduction of a new optimization framework (Tree SSA) and support for autovectorization.
除了一系列的选项之外,当 -qipa选项处于可用状态时,如果汇编器不能进行向量化,那么它会试着在决定调用它们之前去内联MASS标量函数。
In addition to any of the preceding sets of options, when the -qipa option is in effect, if the compiler cannot vectorize, it tries to inline the MASS scalar functions before deciding to call them.
对向量处理过程最明显的优化是对代码进行向量化。
The most obvious optimization to make on a vector process is to vectorize the code.
问题是为了对代码进行向量化,代码必须要对所有向量元素都按照相同的指令集执行。
The problem was that in order to vectorize the code, the code must follow the same set of instructions for each member of the vector.
另外也有用于IBMPowerPC 970处理器的VMX向量扩展,可以提高向量化代码的性能。
There are also VMX vector extensions for the IBM PowerPC 970 processor that can increase the performance of vectorized code.
本文向您提供了对IBMMASS库以及 IBMXL C/C++和 XLFortran 汇编器的自动向量化功能的描述。
This article has offered you a description of the IBM MASS libraries, and the auto-vectorization capabilities of the IBM XL C/C++ and XL Fortran compilers.
正如在Fortran范例中演示的那样,自动向量化带来的好处随着问题规模的增加而增加,最后当 n=2000 的时候达到了。
As illustrated in the Fortran example, the benefit of auto-vectorization grows as the problem size is increased, reaching a factor of 6.00x at n=2000.
最后具体介绍在程序向量化过程中对算法所作的某些改进。
Finally some improvements on arithmetic during the vectorization of the program are described in detail.
在此基础上用一个有限维向量量化光照变化,对像素进行补偿,提高对光照变化的适应能力。
And a limited dimension vector quantizing the illumination variations is used to compensate the pixels' color, so as to improve the adaptability to illumination variations.
文档向量化的质量对于文本分类的速度和准确度有着很大的影响。
The vectorization of documents affects the speed and accuracy of text categorization greatly.
针对边缘匹配矢量量化图像编码方法存在的出轨现象,提出一种引入支持向量机的方法。
To tackle the derailment phenomenon consisting in side-match vector quantization image coding technology, we introduced support vector machine.
针对向量量化这种常用的图象压缩方法,设计了两类信息搭载方案,并对参数取值的不同情况进行了实验比较。
Two kinds of information carrying schemes for vector quantization are designed, and the experimental results of different cases are compared.
本文主要研究欧几里德若当代数向量优化的谱标量化。
In this paper, we study the scalarization over Euclidean Jordan algebra vector optimization problem.
本文研究了多层感知器、径向基函数网络、学习向量量化网络和自组织特征映射网络等四种神经网络在回转窑火焰图像分割中的应用。
In this paper, four neural networks, i. e. multi layer perception, radial basis function, learning vector quantization and self organizing feature mapping, are used to segment the flame image.
本文提出另一种选择量测向量和计算量测概率的方法,创造条件减小量化误差。
In this paper a new choice of measurement vector and the corresponding computation of measurement probability are presented to reduce the quantization error.
并给出了相应的程序转换算法,通过数据相关性的分析,在应用程序向量化时,生成采用向量寄存器部分重用的优化代码。
According to the dependence analysis, we present a transformation strategy that generates vector codes exploiting the partial reuse of vector registers during the vectorization of applications.
区间数学将有界不确定结构参数用超长方体即区间向量进行定量化,而凸模型理论则用椭球对有界不确定参数进行定量化。
Structural parameters with uncertain but bounded parameters are described by a hypercube-an interval vector in interval mathematics and by ellipsoid in convex models.
这种优化和传统的针对向量处理器的自动向量化非常类似。
SIMD optimization is very similar to traditional automatic vectorization for vector processors.
本文探讨用向量运算代替串行FORTRAN的DO循环的基本条件,提出了向量化判别定理以及实现向量化的算法。
Conditions for vectorization of FORTRAN DO-loops are discussed in this paper. Based on these conditions, the decision theorems and the algorithm for vectorization are given.
利用最小二乘支持向量方法,构建了基于多因子量化指标的径流预测模型。
A runoff prediction model was developed based on the multiple quantity index of SVM (support vector machine) method.
取前三个特征值所对应的特征向量定量化地解释了每个植物群的植物组合在经向上的变化规律。
In this articl, the interpretation of the longitudinal variation of the plant assemblages of each flora by using the corresponding cigcn vectors of the first three cigcn values is given.
取前三个特征值所对应的特征向量定量化地解释了每个植物群的植物组合在经向上的变化规律。
In this articl, the interpretation of the longitudinal variation of the plant assemblages of each flora by using the corresponding cigcn vectors of the first three cigcn values is given.
应用推荐