日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

向量对矩阵列空间的投影_向量(阵列)处理和超标量处理器

發(fā)布時間:2024/8/1 编程问答 44 豆豆
生活随笔 收集整理的這篇文章主要介紹了 向量对矩阵列空间的投影_向量(阵列)处理和超标量处理器 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

向量對矩陣列空間的投影

A Scalar processor is a normal processor, which works on simple instruction at a time, which operates on single data items. But in today's world, this technique will prove to be highly inefficient, as the overall processing of instructions will be very slow.

標(biāo)量處理器是一種普通處理器,它一次處理簡單的指令,對單個數(shù)據(jù)項進(jìn)行操作。 但是在當(dāng)今世界,由于指令的整體處理將非常緩慢,因此該技術(shù)將被證明效率極低。

什么是向量(數(shù)組)處理? (What is Vector(Array) Processing?)

There is a class of computational problems that are beyond the capabilities of a conventional computer. These problems require vast number of computations on multiple data items, that will take a conventional computer(with scalar processor) days or even weeks to complete.

一類計算問題超出了常規(guī)計算機(jī)的功能。 這些問題需要對多個數(shù)據(jù)項進(jìn)行大量計算,而這將需要一臺常規(guī)計算機(jī)(帶有標(biāo)量處理器)花費(fèi)數(shù)天甚至數(shù)周才能完成。

Such complex instructions, which operates on multiple data at the same time, requires a better way of instruction execution, which was achieved by Vector processors.

這種同時對多個數(shù)據(jù)進(jìn)行操作的復(fù)雜指令,需要一種更好的指令執(zhí)行方式,這是由Vector處理器實(shí)現(xiàn)的。

Scalar CPUs can manipulate one or two data items at a time, which is not very efficient. Also, simple instructions like ADD A to B, and store into C are not practically efficient.

標(biāo)量CPU一次只能處理一個或兩個數(shù)據(jù)項,效率不是很高。 同樣,簡單的指令(如ADD A到B并存儲到C中)實(shí)際上并不有效。

Addresses are used to point to the memory location where the data to be operated will be found, which leads to added overhead of data lookup. So until the data is found, the CPU would be sitting ideal, which is a big performance issue.

地址用于指向?qū)⒁僮鞯臄?shù)據(jù)的存儲位置,這會增加數(shù)據(jù)查找的開銷。 因此,在找到數(shù)據(jù)之前,CPU將處于理想狀態(tài),這是一個很大的性能問題。

Hence, the concept of Instruction Pipeline comes into picture, in which the instruction passes through several sub-units in turn. These sub-units perform various independent functions, for example: the first one decodes the instruction, the second sub-unit fetches the data and the third sub-unit performs the math itself. Therefore, while the data is fetched for one instruction, CPU does not sit idle, it rather works on decoding the next instruction set, ending up working like an assembly line.

因此, 指令流水線的概念出現(xiàn)了,其中指令依次經(jīng)過幾個子單元。 這些子單元執(zhí)行各種獨(dú)立的功能, 例如 : 第一個子單元對指令進(jìn)行解碼, 第二個子單元獲取數(shù)據(jù),而第三個子單元本身執(zhí)行數(shù)學(xué)運(yùn)算。 因此,在為一條指令獲取數(shù)據(jù)時,CPU不會處于空閑狀態(tài),而是對下一條指令集進(jìn)行解碼,最終像匯編流水線一樣工作。

Vector processor, not only use Instruction pipeline, but it also pipelines the data, working on multiple data at the same time.

向量處理器不僅使用指令流水線,而且還流水線處理數(shù)據(jù),同時處理多個數(shù)據(jù)。

A normal scalar processor instruction would be ADD A, B, which leads to addition of two operands, but what if we can instruct the processor to ADD a group of numbers(from 0 to n memory location) to another group of numbers(lets say, n to k memory location). This can be achieved by vector processors.

普通的標(biāo)量處理器指令為ADD A, B ,這會導(dǎo)致兩個操作數(shù)相加,但是如果我們可以指示處理器將一組數(shù)字(從0到n存儲位置)添加到另一組數(shù)字(如說) ,從n到k存儲位置)。 這可以通過矢量處理器來實(shí)現(xiàn)。

In vector processor a single instruction, can ask for multiple data operations, which saves time, as instruction is decoded once, and then it keeps on operating on different data items.

在向量處理器中,一條指令可以請求多個數(shù)據(jù)操作,從而節(jié)省了時間,因為一條指令被解碼一次,然后繼續(xù)對不同的數(shù)據(jù)項進(jìn)行操作。

向量處理器的應(yīng)用 (Applications of Vector Processors)

Computer with vector processing capabilities are in demand in specialized applications. The following are some areas where vector processing is used:

具有矢量處理能力的計算機(jī)在專門的應(yīng)用中是需要的。 以下是一些使用矢量處理的領(lǐng)域:

  • Petroleum exploration.

    石油勘探。

  • Medical diagnosis.

    醫(yī)學(xué)診斷。

  • Data analysis.

    數(shù)據(jù)分析。

  • Weather forecasting.

    天氣預(yù)報。

  • Aerodynamics and space flight simulations.

    空氣動力學(xué)和太空飛行模擬。

  • Image processing.

    圖像處理。

  • Artificial intelligence.

    人工智能。

  • 超標(biāo)量處理器 (Superscalar Processors)

    It was first invented in 1987. It is a machine which is designed to improve the performance of the scalar processor. In most applications, most of the operations are on scalar quantities. Superscalar approach produces the high performance general purpose processors.

    它最早于1987年發(fā)明。這是一種旨在改善標(biāo)量處理器性能的機(jī)器。 在大多數(shù)應(yīng)用中,大多數(shù)操作都是按標(biāo)量進(jìn)行的。 超標(biāo)量方法可產(chǎn)生高性能的通用處理器。

    The main principle of superscalar approach is that it executes instructions independently in different pipelines. As we already know, that Instruction pipelining leads to parallel processing thereby speeding up the processing of instructions. In Superscalar processor, multiple such pipelines are introduced for different operations, which further improves parallel processing.

    超標(biāo)量方法的主要原理是它在不同的流水線中獨(dú)立執(zhí)行指令。 眾所周知,指令流水線導(dǎo)致并行處理,從而加快了指令的處理速度。 在超標(biāo)量處理器中,針對不同的操作引入了多個這樣的流水線,這進(jìn)一步改善了并行處理。

    There are multiple functional units each of which is implemented as a pipeline. Each pipeline consists of multiple stages to handle multiple instructions at a time which support parallel execution of instructions.

    有多個功能單元,每個功能單元都實(shí)現(xiàn)為管道。 每個流水線包含多個階段,一次可處理多個指令,這些指令支持并行執(zhí)行指令。

    It increases the throughput because the CPU can execute multiple instructions per clock cycle. Thus, superscalar processors are much faster than scalar processors.

    因為CPU可以在每個時鐘周期執(zhí)行多個指令,所以可以提高吞吐量。 因此,超標(biāo)量處理器比標(biāo)量處理器快得多。

    A scalar processor works on one or two data items, while the vector processor works with multiple data items. A superscalar processor is a combination of both. Each instruction processes one data item, but there are multiple execution units within each CPU thus multiple instructions can be processing separate data items concurrently.

    標(biāo)量處理器處理一個或兩個數(shù)據(jù)項,而矢量處理器處理多個數(shù)據(jù)項。 超標(biāo)量處理器是兩者的結(jié)合。 每個指令處理一個數(shù)據(jù)項,但是每個CPU中有多個執(zhí)行單元,因此多個指令可以同時處理單獨(dú)的數(shù)據(jù)項。

    While a superscalar CPU is also pipelined, there are two different performance enhancement techniques. It is possible to have a non-pipelined superscalar CPU or pipelined non-superscalar CPU. The superscalar technique is associated with some characteristics, these are:

    同時也流水線超標(biāo)量CPU,有兩種不同的性能增強(qiáng)技術(shù)。 可能有非流水線的超標(biāo)量CPU或流水線的非超標(biāo)量CPU。 超標(biāo)量技術(shù)具有一些特性,這些特性包括:

  • Instructions are issued from a sequential instruction stream.

    指令是從順序指令流中發(fā)出的。

  • CPU must dynamically check for data dependencies.

    CPU必須動態(tài)檢查數(shù)據(jù)依賴性。

  • Should accept multiple instructions per clock cycle.

    每個時鐘周期應(yīng)接受多個指令。

  • 翻譯自: https://www.studytonight.com/computer-architecture/vector-and-superscalar

    向量對矩陣列空間的投影

    總結(jié)

    以上是生活随笔為你收集整理的向量对矩阵列空间的投影_向量(阵列)处理和超标量处理器的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。