Information
-
Patent Application
-
20040236810
-
Publication Number
20040236810
-
Date Filed
February 25, 200420 years ago
-
Date Published
November 25, 200420 years ago
-
Inventors
-
Original Assignees
-
CPC
-
US Classifications
-
International Classifications
Abstract
In a 3-dimensional fast Fourier transformation implemented by using a parallel-processing computer, an overhead caused by transfers of data between processors employed in the computer is reduced for the purpose of increasing the efficiency of processing parallelism. In order to reduce the overhead, data is divided into data elements each having an even X coordinate and data elements each having an odd X coordinate. In processing 34, the date elements each having an even coordinate are subjected to the transformation in the Y direction while the date elements each having an odd X coordinate are being subjected to a process of permutation among the processors at the same time. In processing 35, on the other hand, the data elements each having an odd X coordinate are subjected to the transformation in the X direction while the data elements each having even coordinate are being subjected to the process of permutation among the processors at the same time. As a result, the communication time it takes to carry out the process of permutation among the processors can be concealed behind the processing time so that the efficiency of the processing parallelism can be increased over the processing efficiency of the conventional method.
Description
FIELD OF THE INVENTION
[0001] The present invention relates to a method to carry out a fast Fourier transformation by using a parallel-processing computer having a distributed-memory configuration.
BACKGROUND OF THE INVENTION
[0002] Large-scale simulations each handling up to several millions of variables are required in scientific and technical computations such as calculations to find characteristics of a semiconductor device, calculations to determine states of electrons and calculations to forecast the weather. As a means for dealing with such large-scale problems, a parallel-processing computer, specially, a parallel-processing computer having the so-called distributed-memory configuration is powerful. The parallel-processing computer having a distributed-memory configuration is a system comprising a plurality of processors connected to each other by a network as processors each having its own memory. In comparison with the conventional sequential-processing computer, the parallel-processing computer parallel-processing computer having a distributed-memory configuration offers an advantage of allowing the peak performance thereof to be raised to as high a level as desired by increasing the number of processors employed therein.
[0003] In the parallel-processing computer having a distributed-memory configuration, pieces of data serving as an object of calculation are stored in memories distributed among the processors so that the processors are capable of carrying out computations on the pieces of data in parallel processing. If a specific one of the processor requires data owned by another processor in the course of processing, the specific processor must wait for the required data to be transferred from the other processor before continuing the processing. Thus, in general, the parallel-processing computer having a distributed-memory configuration incurs an overhead of time required for transferring data from one processor to another in addition to the processing time. For this reason, in order to increase the efficiency of computation, it is necessary to adopt a computation method exhibiting such a high degree of processing parallelism that computation can be done by incurring only a shortest possible period of time required for communication between processors. In addition, a large number of parallel-processing computers having a distributed-memory configuration includes a mechanism, which is used for transferring data from a specific one of the processors to another processor while the specific processor is processing other data. In this configuration, if it is possible to contrive a computation method capable of carrying out processing of data and transfers of other data at the same time, the time it takes to transfer other data can be concealed behind the processing time so that the efficiency of computation can be raised.
[0004] The Fourier transformation is one of processes carried out frequently in a scientific calculation. The Fourier transformation is a process of expressing a function f(x) having complex values defined in an interval of real numbers as a superposition of a complex exponential function exp(ikx). In an implementation on a computer, only a finite number of handled points can be handled so that the Fourier transformation becomes a process of expressing a series of points f0, f1, . . . , fN-1 each representing a complex number as a superposition of N complex exponential functions exp (2πikj/N) where symbol k represents every integer in the range 0, 1, . . . , (N−1), symbol i denotes the imaginary-number unit and symbol π denotes the ratio of the circumference of a circle to the diameter thereof as follows:
exp(2πikj/N)
f
j
=Σk=0N−1ck exp(2πikj/N)
[0005] where symbol j represents every integer in the range 0, 1, . . . , (N−1). That is to say, for the given f0, f1, . . . , fN-1, the Fourier transformation is a process of finding superposition coefficients c0, c1, . . . , cN-1. As commonly known, the superposition coefficients c0, c1, . . . , cN-1 can be found from the following equation:
c
k=
(1/N) Σj=0N-1fj exp(−2πikj/N)
[0006] where symbol k represents every integer in the range 0, 1, . . . , (N−1). If the calculation is carried out on the basis of the above definitions, however, N equations each comprising N terms must be solved. Thus, in addition to calculation of the complex exponential functions exp (−2πikj/N), additions and multiplications of complex numbers must be carried out N2 times. In order to solve this problem of much calculation, in actuality, a technique known as a fast Fourier transformation is adopted widely. The fast Fourier transformation is a technique for reducing the amount of computation to an order of NlogN by devising an algorithm for the Fourier transformation. The fast Fourier transformation is described in detail in documents such as a reference authored by G. Golub and C. F. van Loan with a title of “Matrix Computations”, 3rd edition, published by The John Hopkins University Press, 1996, pp. 189-192.
[0007] The Fourier transformation described above is called a 1-dimensional Fourier transformation. However, a 3-dimensional Fourier transformation is applied to computations such as the calculations to find characteristics of a semiconductor device, the calculations to determine states of electrons and the calculations to forecast the weather. The 3-dimensional Fourier transformation is a process to express complex-number data {fjx, jy, jz} having 3 subscripts jx, jy and jz where symbol jx represents every integer in the range 0, 1, . . . , (Nx−1), symbol jy represents every integer in the range 0, 1, . . . , (Ny−1) and symbol jz represents every integer in the range 0, 1, . . . , (Nz−1) as a superposition of Nx×Ny×Nz complex exponential functions exp(−2πikxjx/Nx) exp(−2πikyjy/Ny) exp(−2πikzjz/Nz) where symbol kx represents every integer in the range 0, 1, . . . , (Nx−1), symbol ky represents every integer in the range 0, 1, . . . , (Ny−1) and symbol kz represents every integer in the range 0, 1, . . . , (Nz−1) as follows:
fjx, jy, jz=Σkx=0Nx-1Σky=0Ny-1Σkz=0Nz-1
ckx, ky, kz exp(−2πikxjx/Nx) exp(−2πikyjy/Ny) exp(−2πikzjz/Nz)
[0008] where symbol jx represents every integer in the range 0, 1, . . . , (Nx−1), symbol jy represents every integer in the range 0, 1, . . . , (Ny−1) and symbol jz represents every integer in the range 0, 1, . . . , (Nz−1). That is to say, for the given {fjx, jy, jz,}, the 3-dimensional Fourier transformation is a process of finding a superposition coefficient {Ckx, ky, kz}. As commonly known, the superposition coefficient {Ckx, ky, kz} can be found from the following equation:
ckx, ky, kz=Σjx=0Nx-1Σjy=0Ny-1Σjz=0Nz-1
fjx, jy, jz exp(−2πikxjx/Nx) exp(−2πikyjy/Ny) exp(−2πikzjz/Nz)
[0009] where symbol kx represents every integer in the range 0, 1, . . . , (Nx−1), symbol ky represents every integer in the range 0, 1, . . . , (Ny−1) and symbol kz represents every integer in the range 0, 1, . . . , (Nz−1).
[0010] Furthermore, it is easy to show that the above equation can be solved by sequentially carrying out the following three transformations:
[0011] <Transformation in the Y Direction>
cjx, ky, jz(1)=Σjy=0Ny-1 fjx, jy, jz exp(−2πikyjy/Ny)
[0012] where symbol jx represents every integer in the range 0, 1, . . . , (Nx−1), symbol ky represents every integer in the range 0, 1, . . . , (Ny−1) and symbol jz represents every integer in the range 0, 1, . . . , (Nz−1).
[0013] <Transformation in the X Direction>
ckx, ky, jz(2)=Σjx=0Nx-1cjx, ky, jz(1) exp(−2πikxjx/Nx)
[0014] where symbol kx represents every integer in the range 0, 1, . . . , (Nx−1) symbol ky represents every integer in the range 0, 1, . . . , (Ny−1) and symbol jz represents every integer in the range 0, 1, . . . , (Nz−1).
[0015] <Transformation in the Z Direction>
C
kx, ky, kz
=Σjz=0Nz-1ckx, ky, jz(2) exp(−2πikzjz/Nz)
[0016] where symbol kx represents every integer in the range 0, 1, . . . , (Nx−1), symbol ky represents every integer in the range 0, 1, . . . , (Ny−1) and symbol kz represents every integer in the range 0, 1, . . . , (Nz−1).
[0017] As is obvious from the above equations, the transformation in the Y direction is a 1-dimensional Fourier transformation carried out on Ny pieces of data having the same subscripts jx and jz. Then, subscripts jx and jz are varied, being used in carrying out such a transformation Nx×Nz times in order to complete the transformation in the Y direction. The transformations in the X and Z directions are carried out in the same way as the transformation in the Y direction. Thus, as indicated by reference numeral 1 shown in FIG. 2, if pieces of 3-dimensional data {fjx, jy, jz} are arranged to form a rectangular solid with dimensions of Nx×Ny×Nz where symbols Nx, Ny and Nz denote the lengths of its sides, the transformation in the Y direction is a 1-dimensional Fourier transformation carried out on Ny pieces of data 2, which are parallel to the Y axis. By the same token, the transformation in the X direction is a 1-dimensional Fourier transformation carried out on Nx pieces of data 3, which are parallel to the X axis. Likewise, the transformation in the Z direction is a 1-dimensional Fourier transformation carried out on Nz pieces of data 4, which are parallel to the Z axis. It is obvious that, by adoption of this method of computation, in the transformation in the Y direction, calculations for sets of data with different X coordinates or different Z coordinates can be carried out concurrently. By the same token, it is also obvious that, in the transformation in the X direction, calculations for sets of data with different Y coordinates or different Z coordinates can be carried out concurrently. Similarly, it is obvious as well that, in the transformation in the Z direction, calculations for sets of data with different X coordinates or different Y coordinates can be carried out concurrently.
[0018] Traditionally, a method utilizing the parallelism described above is generally adopted in execution of the 3-dimensional fast Fourier transformation using a parallel-processing computer having a distributed-memory configuration. An example of such a method is referred to as a permutation algorithm, which is an efficient technique of reducing the amount of data transferred between processors to a minimum. This efficient technique is described in detail in documents such as a reference authored by V. Kumar, A. Grama, A. Gupta and G. Karypis with a title of “Introduction to Parallel Computing”, published by The Benjamin/Cummings Publishing Company, 1994, pp. 377-406. In accordance with this method, as shown in FIG. 3, first of all, 3-dimensional data is split into as many pieces of data 5 each arranged on a plane perpendicular to the Z axis as processors, and the pieces of data 5 are each stored in a memory provided for one of the processors in a distributed-memory configuration. Then, in this state, a transformation in the Y direction is carried out. It is obvious that, since only 1 processor has all Ny pieces of data 2 required in the transformation in the Y direction in itself in this state, the transformation in the Y direction can be carried out without the need to transfer data between processors. After the transformation in the Y direction is completed, the technique of splitting data is changed. This time, the 3-dimensional data is split into as many pieces of data 6 each arranged on a plane perpendicular to the Y axis as processors, and the pieces of data 6 are each stored in a memory provided for one of the processors in a distributed-memory configuration. In consequence, every processor needs to carry out a process to transfer data to all other processors. This process is referred to as permutation. After the permutation process is completed, however, each processor has all Nx pieces of data 3 required in the transformation in the X direction in itself. Thus, the transformation in the X direction can be carried out without the need to transfer data between processors. In addition, also in the case of the transformation in the Z direction, each processor has all Nz pieces of data 4 required in the transformation in the Z direction in itself. Thus, the transformation in the Z direction can be carried out without the need to transfer data between processors. In this way, the 3-dimensional Fourier transformation can be completed. The above description explains the use of a parallel-processing computer having a distributed-memory configuration to implement a method of carrying out the 3-dimensional fast Fourier transformation.
[0019] In accordance with the parallel computing method based on the permutation algorithm described above, the transformations in the Y, X and Z directions can be carried out in processors in a completely independent way. In the permutation process carried out in the course of computing, however, every processor needs to transfer data to all other processors. In general, in a parallel-processing computer having a distributed-memory configuration, it takes much time to transfer data in comparison with the processing time itself. This phenomenon has been becoming obvious more and more as the processing speed of the contemporary processor is increased. In addition, in recent years, PC clusters are widely used. A PC cluster is a number of personal computers (PCs) connected to each other by using a network such as the Internet (a registered trademark). In the case of a PC cluster, the power to transfer data among the personal computers is low in comparison with a parallel-processing computer having a distributed-memory configuration. Thus, in particular, the power to transfer data among the personal computers most likely becomes a bottleneck of the processing time. As is obvious from the background described above, in many cases, the conventional method based on the permutation algorithm does not assure sufficient parallel-processing performance in the use of a parallel-processing computer having a distributed-memory configuration for execution of the 3-dimensional fast Fourier transformation. It is thus an object of the present invention to solve this problem.
SUMMARY OF THE INVENTION
[0020] In order to achieve the object cited above, in accordance with the present invention, the Y-direction and X-direction transformations based on the permutation algorithm are each split into two partial processes and the processing order is changed so as to allow communications and calculative processing to overlap each other. For this reason, the present invention focuses on the following transformation properties:
[0021] (1) The transformation in the Y direction exhibits parallelism with respect to the transformation in the X direction. Thus, each processor is capable of carrying out a transformation on Nx sets of data as a transformation to be executed by itself in any arbitrary order.
[0022] (2) The transformation in the X direction comprises log2(Nx) steps. At the first log2(Nx−1) steps of the steps composing the transformation in the X direction, data elements each having an even X coordinate are processed only in conjunction with data elements each also having an even X coordinate whereas data elements each having an odd X coordinate are processed only in conjunction with data elements each also having an odd X coordinate.
[0023] The case of Nx=8 is taken as an example. In this case, the flow of a computation carried out on a data set in the transformation in the X direction is shown in FIG. 4. In the flow diagram, eight circles 7 arranged vertically each denote 1 data element and a line 8 connecting circles 7 indicates that a computation of a value of the circle 7 on the right end of the line 8 requires the value of the circle 7 on the left end of the line 8. As is obvious from the figure, at the first log2(Nx−1)=2 steps of the transformation, data elements each having an even X coordinate are processed only in conjunction with data elements each also having an even X coordinate whereas data elements each having an odd X coordinate are processed only in conjunction with data elements each having also an odd X coordinate. Accordingly, it is clear that transformation property (2) described above holds true. This transformation property applies not only to the special case of Nx=8, but also to general cases.
[0024] If the two properties, i. e., properties (1) and (2) described above, are utilized, the Y-direction and X-direction transformations based on the permutation algorithm can be divided into the following 5 pieces of processing:
[0025] <Processing 1>
[0026] A transformation in the Y direction is carried out only on data elements each having an even X coordinate.
[0027] <Processing 2>
[0028] A transformation in the Y direction is carried out only on data elements each having an odd X coordinate. At the same time, a permutation process is carried out only on data elements each having an even X coordinate.
[0029] <Processing 3>
[0030] The first log2(Nx−1) steps of the transformation in the X direction are executed only on data elements each having an even X coordinate. At the same time, a permutation process is carried out only on data elements each having an odd X coordinate.
[0031] <Processing 4>
[0032] The first log2(Nx−1) steps of the transformation in the X direction are executed only on data elements each having an odd X coordinate.
[0033] <Processing 5>
[0034] The last step of the transformation in the X direction is executed.
[0035] The states of processing 1 to processing 4 according to the present invention are shown in FIG. 5. In the figure, hatched portions 9 and 10 represent data elements being subjected to transformation calculations, a gray portion 11 represents data elements being subjected to data transfers and a white portion 12 represents data elements not being subjected to any operations. A line in the rectangular solid represents division of data into data portions each assigned to a processor. In accordance with the computation method provided by the present invention, in processing 2, while a transformation in the Y direction is being carried out on data elements each having an odd X coordinate, a permutation process can be carried out only on data elements each having an even X coordinate. In processing 3, on the other hand, while a transformation in the Y direction is being carried out on data elements each having an even X coordinate, a permutation process can be carried out only on data elements each having an odd X coordinate. In this way, the time it takes to transfer data can be concealed behind the processing time and, hence, the efficiency of computation can be increased.
BRIEF DESCRIPTION OF THE DRAWINGS
[0036]
FIG. 1 shows a flowchart representing a computation technique of Y-direction and X-direction transformations adopting a parallel 3-dimensional fast Fourier transformation method according to the present invention;
[0037]
FIG. 2 is a diagram showing the conventional 3-dimensional fast Fourier transformation method;
[0038]
FIG. 3 is a diagram showing the conventional parallel 3-dimensional fast Fourier transformation method;
[0039]
FIG. 4 is a diagram showing dependence relations of data in the transformation carried out in the X direction;
[0040]
FIG. 5 is a diagram showing a computation technique of Y-direction and X-direction transformations adopting a parallel 3-dimensional fast Fourier transformation method according to the present invention;
[0041]
FIG. 6 is a diagram showing the configuration of a parallel-processing computer having a distributed-memory configuration as a computer to which the present invention is to be applied;
[0042]
FIG. 7 shows a flowchart representing the conventional parallel 3-dimensional fast Fourier transformation method;
[0043]
FIG. 8 shows a flowchart representing operations of a parallel 3-dimensional fast Fourier transformation library according to the present invention; and
[0044]
FIG. 9 shows a flowchart representing a weather forecast computation using the parallel-processing computer having a distributed-memory configuration according to the present invention.
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0045] <<First Embodiment>>
[0046] (1) Schematic Configuration of the Computer
[0047] An embodiment and principle of the present invention will be described in detail by referring to diagrams. The embodiment implements a parallel-processing computer having a distributed-memory configuration as a computer for solving partial-differential equations by using a 3-dimensional Fourier transformation. To be more specific, the parallel-processing computer having a distributed-memory configuration is used as a means for running a simulation. In this particular case, as a typical simulation, calculations for weather forecasting are explained.
[0048]
FIG. 6 is a diagram showing a parallel-processing computer system for executing a parallel-processing program implementing a computation method provided by the present invention. As shown in the figure, the parallel-processing computer system comprises an input apparatus 13, a processing apparatus 17, an output apparatus 18 and an external storage apparatus 21. The input apparatus 13 is an apparatus for inputting parameters such as the shape of computation area, initial conditions and material constants. The processing apparatus 17 comprises P processors 15 and a network 16. The processors 15 each have a memory 14. The network 16 is used for transferring data between the memories 14 employed in the processors 15. The output apparatus 18 is an apparatus for outputting results of computation. The external storage apparatus 21 is an apparatus for storing a program 19 and data 20. Data can be transferred between the memories 14 employed in the processors 15 at the same time as processing carried out by the processors 15.
[0049] (2) 3-Dimensional Parallel-Processing Fast Fourier Transformation Based on the Conventional Method
[0050] By using mathematical expressions, the following description explains the principle of the 3-dimensional fast Fourier transformation executed on a parallel-processing computer having a distributed-memory configuration. The 3-dimensional Fourier transformation is a process to find Nx×Ny×Nz pieces of complex output data {Ckx, ky, kz} from Nx×Ny×Nz pieces of complex input data {fjx, jy, jz} by using Eq. (1) given as follows:
ckx, ky, kz=Σjx=0Nx-1Σjy=0Ny-1Σjz=0Nz-1
fjx, jy, jz exp(−2πikxjx/Nx) exp(−2πikyjy/Ny) exp(−2πikzjz/Nz) (1)
[0051] where symbol kx denotes every integer in the range 0, 1, . . . , (Nx−1), symbol ky denotes every integer in the range 0, 1, . . . , (Ny−1) and symbol kz denotes every integer in the range 0, 1, . . . , (Nz−1).
[0052] It is readily obvious that Eq. (1) can be solved by sequentially carrying out transformations in the Y, X and Z directions, which are expressed by Eqs. (2), (3) and (4) respectively as follows:
c
jx, ky, jz
(1)
=Σjy=0Ny-1 fjx, jy, jz exp(−2πikyjy/Ny) (2)
[0053] where symbol jx denotes every integer in the range 0, 1, . . . , (Nx−1), symbol ky denotes every integer in the range 0, 1, . . . , (Ny−1) and symbol jz denotes every integer in the range 0, 1, . . . , (Nz−1).
c
kx, ky, jz
(2)
=Σjx=0Nx-1 cjx, ky, jz(1) exp(−2πikxjx/Nx) (3)
[0054] where symbol kx denotes every integer in the range 0, 1, . . . , (Nx−1), symbol ky denotes every integer in the range 0, 1, . . . , (Ny−1) and symbol jz denotes every integer in the range 0, 1, . . . , (Nz−1).
c
kx, ky, kz
=Σjz=0Nz-1 Ckx, ky, jz(2) exp(−2πikzjz/Nz) (4)
[0055] where symbol kx denotes every integer in the range 0, 1, . . . , (Nx−1), symbol ky denotes every integer in the range 0, 1, . . . , (Ny−1) and symbol kz denotes every integer in the range 0, 1, . . . , (Nz−1).
[0056] These transformations are carried out in the parallel-processing computer having a distributed-memory configuration by performing Nx×Nz independent transformations expressed by Eq. (2), Ny×Nz independent transformations expressed by Eq. (3) and Nx×Ny independent transformations expressed by Eq. (4). A computation method based on this concept is the permutation algorithm described in a paragraph with a title of ‘Background of the Invention.’ FIG. 7 shows a flowchart representing a computation based on the permutation algorithm. The computation mainly comprises the following four processes:
[0057] <Transformation in the Y Direction>
[0058] In processing 23 of the flowchart shown in FIG. 7, 3-dimensional data fjx, jy, jz is received from the input apparatus. In the next processing 24, the data is arranged to form a rectangular solid. In the next processing 25, the data is divided into as many data portions each located on a plane perpendicular to the Z axis as processors and the data portions are each stored in a memory provided for one of the processors in a distributed-memory configuration.
[0059] As a technique to divide data, it is possible to adopt one of a variety of methods such as a block division method and a cyclic division method. For details of the data division method, refer to a reference authored by V. Kumar, A. Grama, A. Gupta and G. Karypis with a title of “Introduction to Parallel Computing,” published by The Benjamin/Cummings Publishing Company in 1994. In accordance with the block division method, for example, processor p where 0≦p≦(P−1) is designated as a processor having (Nz×Ny×Nz)/P pieces of data with a Z coordinate jz satisfying the following relation:
(Nz/P)×p≦jz≦(Nz/P)×(p+1)−1
[0060] With the data divided into data portions as described above, in the next processing 26, each processor carries out a transformation in the Y direction on a data portion stored in a memory provided for the processor in accordance with Eq. (2).
[0061] <Permutation Process>
[0062] In the next processing 27, the data is divided into as many data portions each located on a plane perpendicular to the Y axis as the processors as indicated by reference numeral 6 in FIG. 3, and the data portions are each stored in a memory provided for one of the processors in a distributed-memory configuration. Also in this case, as a technique to divide data, it is possible to adopt one of a variety of methods. In accordance with the block division method, for example, processor p where 0≦p≦(P−1) is designated as a processor having (Nz×Ny)/(P×Nz) pieces of data with a Y coordinate ky satisfying the following relation:
(Ny/P)×p≦ky≦(Ny/P)×(p+1)−1
[0063] In order to implement the modified data division method described above, processor p transfers some of its data, which exists in processor p after the transformation carried out in the Y direction, to processor p′. To be more specific, processor p provides processor p′ with (Nx×Ny)/(P×Nz) pieces of data with a Y coordinate ky satisfying the following relation:
(Ny/P)×p′≦ky≦(Ny/P)×(p′+1)−1
[0064] The process to transfer such data is referred to as the permutation process.
[0065] <Transformation in the X Direction>
[0066] In the next processing 28, each processor carries out a transformation in the X direction on a data portion stored in a memory provided for the processor in accordance with Eq. (3).
[0067] <Transformation in the Z Direction>
[0068] In the next processing 29, each processor carries out a transformation in the Z direction on a data portion stored in a memory provided for the processor in accordance with Eq. (4). In the next processing 30, data obtained as results of the transformation is supplied to the output apparatus.
[0069] The conventional 3-dimensional fast Fourier transformation based on the permutation algorithm has been explained above. In accordance with this method of computation, however, each processor needs to transfer data to all other processors during the permutation process 27 in the course of the whole process as described in a paragraph with a title of ‘Background of the Invention,’ and such transfers of data become a bottleneck of the performance.
[0070] (3) 3-Dimensional Parallel-Processing Fast Fourier Transformation Based on a Method According to the Invention
[0071] In order to solve the problem cited above, in accordance with the present invention, the Y-direction and X-direction transformations based on the permutation algorithm are each split into two partial processes and the processing order is changed so as to allow communications and calculative processing to overlap each other. FIG. 1 shows a flowchart representing a computation process carried out in accordance with the present invention. In comparison with the conventional computation process based on the permutation algorithm as shown in FIG. 7, the computation process according to the present invention includes pieces of processing, which are identical with pieces of processing included in the flowchart shown in FIG. 7. The identical pieces of processing are the pieces of processing ending with processing 25 and the pieces of processing starting with processing 29. For this reason, the flowchart shown in FIG. 1 represents only pieces of processing between processing 25 and processing 29. In the computation process according to the present invention, there are five pieces of processing between processing 25 and processing 29. These pieces of processing are described as follows:
[0072] <Y-Direction Transformation Process (1)>
[0073] In processing 33 of the flowchart shown in FIG. 1, a Y-direction transformation according to Eq. (2) is carried out only on some of a data portion, which was obtained as a result of data division and stored in processing 25 of the flowchart shown in FIG. 7 in a memory provided for each of the processors in the distributed-memory configuration. To be more specific, the Y-direction transformation is carried out only on data elements each having an even X coordinate jx. As described before, data to be subjected to transformation processes is arranged into a complex-data series forming a rectangular solid, and the complex-data series is then divided into as many data portions each located on a plane perpendicular to the Z axis as processors. Thus, since the complex-data series is not divided in the directions of the X and Y axes, the series forms a distributed layout that allows transformation processes in the X and Y directions to be completed without the need to transfer data between processors. In Y-direction transformation process (1), however, each of the processors carries out a transformation process in the Y direction only on some of the data portion, that is, only on data elements each having an even X coordinate jx.
[0074] <Y-Direction Transformation Process (2)>
[0075] In the next processing 34 of the flowchart shown in FIG. 1, each of the processors carries out a transformation process in the Y direction in accordance with Eq. (2) only on some of a data portion stored in its own memory. To be more specific, each processor carries out the Y-direction transformation process only on data elements each having an odd X coordinate jx. Concurrently with the transformation process, a permutation process is carried out only on data elements each having an even X coordinate jx in the same way as the permutation process for the conventional method. In the permutation process, some of data owned each processor p is transferred from processor p to processor p′. To be more specific, processor p provides processor p′ with (Nx/2)×(Ny/P)×Nz data elements with a Y coordinate ky satisfying the following relation:
(Ny/P)×p′≦ky≦(Ny/P)×(p′+1)−1
[0076] As a result of this permutation process, only data elements each having an even X coordinate jx are exchanged among the memories of the processors to be relocated in the memories.
[0077] Thus, in the resulting a state, each of the processors is capable of completing the transformation in the Z direction without transferring data between processors. As for the X direction, each of the processors is capable of executing all the steps of the transformation process except the last step, that is, each processor is capable of executing the first log2(Nx−1) steps of the transformation process carried out in the X direction, as processing performed on mutually adjacent data elements.
[0078] <X-Direction Transformation Process (1)>
[0079] In the next processing 35 of the flowchart shown in FIG. 1, each of the processors executes all steps of a transformation process carried out in the X direction except the last step in accordance with Eq. (5) given below as a substitute for Eq. (3) only on some of a data portion stored in its own memory.
c
kx, ky, jz
(2′)
=Σjx′=0Nx/2-1 c2jx′, ky, jz(1) exp(−2πikx2jx′/Nx) (5)
[0080] where symbol kx denotes every integer in the range 0, 1, . . . , (Nx−1), symbol ky denotes every integer in the range 0, 1, . . . , (Ny−1) and symbol jz denotes every integer in the range 0, 1, . . . , (Nz−1). To be more specific, each processor executes the first log2(Nx−1) steps of the transformation process carried out in the X direction only on data elements each having an even X coordinate jx. Concurrently with the transformation process, a permutation process is carried out only on data elements each having an odd X coordinate jx in the same way as the permutation process for the conventional method. In the permutation process, some of data owned by each processor p is transferred from processor p to processor p′. To be more specific, processor p provides processor p′ with Nx/2×Ny/P×Nz data elements with a Y coordinate ky satisfying the following relation:
(Ny/P)×p′≦ky≦(Ny/P)×(p′+1)−1
[0081] Thus, the relocation of data results in a state in which, for data elements each having an odd X coordinate jx, each of the processors is capable of completing a transformation process in the Z direction and, as for the X direction, each of the processors is capable of executing all the steps of the transformation process except the last step, that is, each processor is capable of executing the first log2(Nx−1) steps of the transformation process carried out in the X direction, as processing performed on mutually adjacent data elements.
[0082] <X-Direction Transformation Process (2)>
[0083] In the next processing 36 of the flowchart shown in FIG. 1, each of the processors executes all steps of a transformation process in the X direction except the last step in accordance with Eq. (6) given below as a substitute for Eq. (3) only on some of a data portion stored in its own memory.
c
kx, ky, jz
(2″)
=Σjx′=0Nx/2-1 c2jx′+1, ky, jz(1) exp(−2πikx(2jx′+1)/Nx) (6)
[0084] where symbol kx denotes every integer in the range 0, 1, . . . , (N−1), symbol ky denotes every integer in the range 0, 1, . . . , (Ny−1) and symbol jz denotes every integer in the range 0, 1, . . . , (Nz−1). To be more specific, each processor executes the first log2(Nx−1) steps of the transformation process carried out in the X direction only on data elements each having an odd X coordinate jx.
[0085] <X-Direction Transformation Process (3)>
[0086] In the next processing 37 of the flowchart shown in FIG. 1, each of the processors executes the last step of the transformation process carried out in the X direction in accordance with Eq. (7) given below on a data portion stored in its own memory. Eq. (7) is derived by using Ckx, ky, jz(2′) found by using Eq. (5) and Ckx, ky, jz(2″) found by using Eq. (6) as follows:
c
kx, ky, jx
(2)
=c
kx, ky, jz
(2′)
+c
kx, ky, jz
(2″)
(7)
[0087] where symbol kx denotes every integer in the range 0, 1, . . . , (N−1), symbol ky denotes every integer in the range 0, 1, . . . , (Ny−1) and symbol jz denotes every integer in the range 0, 1, . . . , (Nz−1).
[0088] In Y-direction transformation process (2) according to the method of computation described above, each processor is capable of carrying out the transformation process in the Y direction only on data elements each having an odd X coordinate and a permutation process only on data elements each having an even X coordinate at the same time. In X-direction transformation process (1) according to the method of computation described above, on the other hand, each processor is capable of carrying out the transformation process in the X direction only on data elements each having an even X coordinate and a permutation process only on data elements each having an odd X coordinate at the same time. Thus, some or all of the transfer time can be concealed behind the processing time so that the efficiency of the computation can be increased.
[0089] (4) Parallel-Processing High-Speed Fourier Transformation Library
[0090] The following description explains a typical case in which the present invention is applied to a library implementing the 3-dimensional fast Fourier transformation by using a parallel-processing computer. The name of the library is FFT3D, and the library is executed on all specified processors running concurrently by the following call statement:
CALL FFT3D (Nx, Ny, Nz, P, F, TB, IOPT, IER)
[0091] where symbol Nx denotes the number of pieces of 3-dimensional data to be subjected to a Fourier transformation carried out in the X direction, symbol Ny denotes the number of pieces of 3-dimensional data to be subjected to a Fourier transformation carried out in the Y direction, symbol Nz denotes the number of pieces of 3-dimensional data to be subjected to a Fourier transformation carried out in the Z direction, symbol P denotes the number of processors for carrying out the Fourier transformations, symbol F denotes an array for storing 3-dimensional data {fjx, jy, jz} to be subjected to Fourier transformations at an input time or Fourier-transformation results {Ckx, ky, kz} at an output time, symbol TB denotes a table for storing computed values of a complex exponential function used in the Fourier transformations, symbol IOPT denotes an input argument specifying a function of the library as a function to be carried out in the execution of the library and symbol IER denotes an output indicating whether or not a run-time error has been generated in the execution of the library. The array F represents a partial array owned by each processor. Since the block division technique is applied to the input data with respect to the Z coordinate, processor p, where 0≦p≦(P−1), serving as the pth processor has only Nx×Ny×Nz/P pieces of data with a Z coordinate jz satisfying the relation (Nz/P)×p≦jz≦(Nz/P)×(p+1)−1. That is to say, the array F assigned to the pth processor is used for storing data as expressed by the following equation:
F(jx, jy, jz′)=fjx, jy, (Nz/P)*p+jz′ (8)
[0092] where symbol jx denotes every integer in the range 0, 1, . . . , (Nx−1), symbol jy denotes every integer in the range 0, 1, . . . , (Ny−1) and symbol jz′ denotes every integer in the range 0, 1, . . . , (Nz/P−1). Thus, the size of every array F assigned to a processor is Nx×Ny×Nz/P. The table TB is a table for storing values computed in the first call as values of a complex exponential function. These values of a complex exponential function can be reused in the second and subsequent calls so that the computation of the values does not need to be repeated. In the first call, the argument IOPT is set at 1 to indicate that a table is to be created as the table TB for storing computed values of a complex exponential function. In the second and subsequent calls, on the other hand, the argument IOPT is set at 2 to indicate that the computed values already stored in the table TB are to be used.
[0093]
FIG. 8 shows a flowchart representing the operation of the library. When the library is called in processing 39, the library examines the validity of input arguments in the next processing 40. To put it concretely, for example, the library examines the arguments Nx, Ny, Nz and P to confirm that they are each an integer, and examines the argument IOPT to confirm that its value is 1 or 2. If any of the input arguments has an invalid value, the flow of the operation goes on to processing 41 in which IER is set at 1,000. Then, control is returned to the calling program. If none of the input arguments has an invalid value, on the other hand, the flow of the operation goes on to processing 42 in which other processors are informed of this call. Then, the flow of the operation goes on to processing 43 determine whether or not the library has been called for P processors as specified by the argument P. If this condition is not satisfied, the flow of the operation goes on to processing 44 in which IER is set at 2,000. Then, control is returned to the calling program. If this condition is satisfied, on the other hand, the flow of the operation goes on to processing 45 in which the value of the argument IOPT is examined. If the value of the argument IOPT is 1, the flow of the operation goes on to processing 46 in which values of a complex exponential function used in the Fourier transformations in all directions are computed and stored in the table TB. Then, the flow of the operation goes on to processing 47.
[0094] If the value of the argument IOPT is 2, on the other hand, the flow of the operation goes on directly to the processing 47 in which transformation processes in the Y and X directions are carried out. These transformation processes are carried out in accordance with a method described in a paragraph included in the description of this embodiment as a paragraph with a title of ‘(3) 3-Dimensional Parallel-Processing Fast Fourier Transformation Based on a Method Provided by the Invention.’ To put it concretely, these transformation processes are completed by sequentially carrying out five processes ranging from Y-direction transformation process (1) performed in the processing 33 of the flowchart shown in FIG. 1 to X-direction transformation process (3) performed in the processing 37 of the flowchart shown in FIG. 1. Then, in the next processing 48 of the flowchart shown in FIG. 8, a transformation process in the Z direction is carried out in accordance with a method described in a paragraph included in the description of this embodiment as a paragraph with a title of ‘(2) 3-Dimensional Parallel-Processing Fast Fourier Transformation Based on the Conventional Method.’ At the end of this transformation process carried out in the Z direction, the 3-dimensional fast Fourier transformation processing is all completed. At the completion time, pieces of data obtained as a result of a block-division process carried out with respect to the Y coordinate are stored in the array F in the same way as the 3-dimensional parallel-processing fast Fourier transformation based on the conventional method. To put it concretely, in the next processing 49 of the flowchart shown in FIG. 8, the following pieces of data are stored in the array F assigned to the pth processor:
F(kx, ky′, kz)=ckx, (Ny/P)*p+ky′, kz (9)
[0095] where symbol kx denotes every integer in the range 0, 1, . . . , (Nx−1), symbol ky′ denotes every integer in the range 0, 1, . . . , (Ny/P−1) and symbol kz denotes every integer in the range 0, 1, . . . , (Nz−1).
[0096] (5) Simulation Program
[0097]
FIG. 9 shows a flowchart representing a parallel-processing program developed for a weather calculation to be carried out in this embodiment. The following description explains a typical application of the program to a computation for 3-dimensional mesh with a size of Nx×Ny×Nz.
[0098] The flowchart representing the parallel-processing program begins with processing 51 in which the program inputs parameters, which include the sizes Nx, Ny and Nz of a computation area, initial conditions and material constants. The initial conditions include a temperature, a velocity of the wind and a pressure, whereas the material constants include mainly the thermal conductivity of the air. In addition, the program carries out preprocessing required for the computation. In this preprocessing, interpolations are carried out on the temperature, the velocity of the wind and the pressure, which have been obtained as a result of observation, in order to obtain data at mesh points as data required for the computation. Then, in the next processing 52, data including the temperature, the velocity of the wind and the pressure is distributed to processors employed in the parallel-processing computer. The distributed data is results of a block-division process carried out on input data in the Z direction. Thus, the distributed data allows the use of the 3-dimensional fast Fourier transformation library FFT3D described in the preceding paragraph.
[0099] After the pieces of processing 51 and 52 are finished, the flow of the program enters a loop to find quantities such as the temperature, the velocity of the wind and the pressure for a variety of time steps one after another. Equations serving as a fundamental are the following three equations:
[0100] An equation of motion for the velocity of the wind:
du/dt=−
2Ω×u−(1/ρ)∇p+Fu (10)
[0101] An equation for conservation of mass:
dρ/dt=−ρ∇·u
(11)
and
[0102] An equation expressing a change in temperature:
dT/dt=−κ∇
2
T+u·∇T
(12)
[0103] where symbol u denotes the velocity of the wind, symbol p denotes the pressure, symbol T denotes the temperature, symbol Ω denotes Corioli's force, which is a force caused by the autorotation of the earth, symbol Fu denotes other forces, symbol ρ denotes the density of the air and symbol κ denotes the thermal conductivity of the air. In order to find values of data for the next point of time from the above equations, first of all, in processing 53, the wind velocity u, the pressure p and the temperature T at a lattice point are transformed into pieces of data in a wave-number space by adopting the Fourier transformation. Then, in the next processing 54, these pieces of data in the wave-number space are differentiated. Subsequently, in the next processing 55, the pieces of data in the frequency space are reversely subjected to an inverse Fourier transformation process to find a temperature gradient ∇T, a second derivative ∇2T, a pressure gradient ∇p and a velocity divergence ∇·u. Then, in the next processing 56, these quantities are substituted into expressions on the right side of Eqs. (8) to (10) to find the wind velocity u, the pressure p and the temperature T for the next time step. The wind velocity u, the pressure p and the temperature T at a lattice point are transformed into pieces of data in a wave-number space by adopting the Fourier transformation as described above because, in this way, the derivatives can be found with a high degree of precision. In this program, the 3-dimensional Fourier transformation library FFT3D is applied to this part of the calculation.
[0104] In the next processing 57 at the end of the loop, the status of the computation is examined to determine whether or not the computation to find the quantities for all time steps ending at the supposed last point of time has been completed. If the computation has been completed, the flow of the program goes on to processing 58 in which post-processing is carried out. Then, in the next processing 59, results of the computation are output. In the post-processing, results are interpolated to find values for specific points, at which data is required, in a case mesh points of the computation are different from the specific points.
[0105] The above application has been explained by taking a calculation to forecast the whether as an example. It is obvious, however, that the technique provided by the present invention can also be adopted for other applications. For example, the technique can be applied to a simulation adopting the 3-dimensional fast Fourier transformation in a parallel-processing computer. In addition, in the application described above, prior to the Fourier transformation process, 3-dimensional data is subjected to a block-division process carried out in the Z direction but, after the Fourier transformation process, data is subjected to a block-division process carried out in the Y direction. It is obvious, however, that the technique provided by the present invention can also be adopted for applications in which, in place of the block-division processes, cyclic-division processes or block cyclic division processes are carried out. Furthermore, in the application described above, the transformation processes in the Y, X and Z directions are carried out in the Y→X→Z order. However, Y, X and Z are no more than names assigned to the axes of coordinates for the sake of convenience. Thus, it is obvious that the technique provided by the present invention can also be adopted in the same way for an application method in which, for example, the name Y is replaced by the name X (X→Y), the name Z is replaced by the name Y (Y→Z) and the name X is replaced by the name Z (Z→X).
[0106] <<Second Embodiment>>
[0107] As described above, in the first embodiment, a method of computation is adopted for the 3-dimensional Fourier transformation. However, this method of computation can also be applied to a 1-dimensional Fourier transformation. As is widely known, in order to apply the 1-dimensional Fourier transformation to data of N points, the data is arranged to form a rectangular solid with a size of Nx×Ny×Nz where symbols Nx, Ny and Nz each denote any arbitrary integer and satisfy the relation Nx×Ny×Nz=N. Then, a 3-dimensional Fourier transmission adding a process referred to as a ‘twist-coefficient multiplication’ is carried out on the arranged data. The twist-coefficient multiplication is a process in which, after the Y-direction transformation according to Eq. (2), processing is carried out on the intermediate result Cjx, ky, jz(1) in accordance with Eq. (13) as follows:
[0108] <Y-direction transformation according to Eq. (2)>
c
jx, ky, jz
(1)
:=c
jx, ky, jz
(1)
×exp
(2πikyjx/(NxNy) (13)
[0109] where symbol jx denotes every integer in the range 0, 1, . . . , (Nx−1), symbol ky denotes every integer in the range 0, 1, . . . , (Ny−1) and symbol jz denotes every integer in the range 0, 1, . . . , (Nz−1). In addition, after the X-direction transformation according to Eq. (3), processing is carried out on the intermediate result Ckx, ky, jz(2) in accordance with the Eq. (14) as follows:
[0110] <X-direction transformation according to Eq. (3)>
c
kx, ky, jz
(2)
=c
kx, ky, jz
(2)
×exp
(2πi(Nykx+ky)jx/(NxNyNz) (14)
[0111] where symbol kx denotes every integer in the range 0, 1, . . . , (Nx−1), symbol ky denotes every integer in the range 0, 1, . . . , (Ny−1) and symbol jz denotes every integer in the range 0, 1, . . . , (Nz−1). As described above, the twist-coefficient multiplication comprises independent pieces of processing carried out on data elements of the arrays Cjx, ky, jz(1) and Ckx, ky, jz(2). Thus, these pieces of processing can be incorporated respectively after the Y-direction transformation and the X-direction transformation in the method provided by the first embodiment. In this way, the equations provided by the present invention can also be applied to the 1-dimensional fast Fourier transformation.
[0112] <<Third Embodiment>>
[0113] The present invention can be further applied to a 2-dimensional fast Fourier transformation. The present invention is applied to the 2-dimensional fast Fourier transformation in the same way as the first embodiment except Nz is set at 1.
[0114] In addition, in the case of the application to the 2-dimensional fast Fourier transformation, data serving as an object of the transformation is a complex-data array arranged 2-dimensionally in the directions of the X and Y axes. At a stage of a data-division process prior to ‘Y-Direction Transformation Process (1)’ explained in the description of the first embodiment, the complex-data array is divided into as many data portions each laid out on a plane perpendicular to the X axis as processors, and each of the data portions is stored in a memory provided for one of the processors in a distributed-memory configuration. Thus, the complex-data array is put in a state allowing a transformation in the Y direction to be completed without transferring data from one processor to another. In ‘Y-Direction Transformation Process (1)’, however, each of the processor carries out only a transformation in the Y direction on data elements each having an even X coordinate jx. Then, in Y-Direction Transformation Process (2), each of the processor carries out a transformation in the Y direction only on data elements each having an odd X coordinate jx, and concurrently with this Y-direction transformation, data elements each having an even X coordinate jx are relocated by being transferred among the processors in another rearrangement process. In this other rearrangement process, the complex-data array is divided into as many data portions each laid out along a straight line perpendicular to the X axis as the processors, and each of the data portions is stored in a memory provided for one of the processors in a distributed-memory configuration. As a result, each of the processors is capable of executing all steps of the transformation process carried out in the X direction except the last step, that is, each processor is capable of executing the first log2(Nx−1) steps of the X-direction transformation. Furthermore, in X-Direction Transformation Process (1), each of the processors executes the first log2(Nx−1) steps of the transformation carried out in the X direction on the relocated data elements each having an even X coordinate jx, and data elements each having an odd X coordinate jx are relocated by being transferred among the processors concurrently with the execution of these first steps of the X-direction transformation. The data elements each having an odd X coordinate jx are rearranged for relocation in the same way as the other rearrangement process described above. Subsequently, the transformation processing is continued to X-Direction Transformation Process (2) and, then, to X-Direction Transformation Process (3) in exactly the same way as the first embodiment. Since the data serving as an object of transformation is 2-dimensional data, however, the transformation processing is ended with X-Direction Transformation Process (3).
[0115] <<Fourth Embodiment>>
[0116] The following description explains a computation of a structure of electrons in a semiconductor device or the like as another application carrying out a simulation by adoption of the fast Fourier transformation according to the present invention. In the computation of a structure of electrons, a wave function u(r) of electrons defined in a 3-dimensional mesh is computed in accordance with the following Schroedinger equation:
du
(r)/dt=−(h2/2m)∇2u(r)+(E−V(r))u(r) (15)
[0117] where symbol h denotes Planck's constant, symbol m denotes the mass of an electron, symbol E denotes the energy level of the computed wave function and symbol V denotes a potential energy of other electrons and atoms in the crystal. The wave function is computed in order to find quantities such as the size of a band gap determining the properties of the semiconductor and the stability of the structure of a crystal.
[0118] In the computation of the expression on the right side of Eq. (15), a second derivative ∇2u(r) of the wave function is required. For the same reason as the one explained in the description of the weather-forecasting application, however, this portion is computed after u(r) is moved to the wave-number space by applying the Fourier transformation, and the result of the computation is returned back to the real space. Thus, when a structure of electrons is found by using a parallel-processing computer, the 3-dimensional fast Fourier transformation according to the present invention can be applied to this portion.
[0119] As described above, in accordance with the present invention, in the fast Fourier transformation implemented in a parallel-processing computer having a distributed-memory configuration, a data manipulation process and a data transfer process are carried out concurrently at the same time so that some or all the time it takes to carry out the latter process can be concealed behind the time required for performing the former process. Thus, by adoption of the method provided by the present invention, the efficiency of the processing parallelism can be increased over the processing efficiency of the conventional method. It is to be noted that, while the effect of the efficiency improvement much depends on the inter-processor communication performance displayed by the parallel-processing computer having a distributed-memory configuration, reduction of the execution time by about 20% to 30% can be expected for a case of solving a problem with a typical N value of 2563 by using 16 processors for example.
Claims
- 1. A fast Fourier transformation method of implementing a fast Fourier transformation in a parallel-processing computer comprising an input apparatus, a processing apparatus, which includes a plurality of processors each having one of memories and a network for transferring data among said memories employed for said processors, an output apparatus and an external storage apparatus, said fast Fourier transformation method comprising the steps of:
dividing data serving as an object of said Fourier transformation into a plurality of data portions and distributing said data portions to said processors in order to store said data portions in said memories employed for said processors; further dividing each of said data portions distributed to said processors into a first data part and a second data part and driving every individual one of said processors to carry out a process on said first data part of said data portion distributed to said individual processor; and driving every individual one of said processors to carry out a process on said second data part of said data portion distributed to said individual processor and, at the same time, concurrently carry out processing to relocate results of said process carried out on said first data part by reassigning said results among said processors.
- 2. A fast Fourier transformation method according to claim 1,
wherein said process carried out on said first data part and said process carried out on said second data part are each a process of a Fourier transformation performed on said data parts in the direction of a first axis; and wherein said method further comprises the step of, subsequently to the step of relocating results of said process carried out on said first data part, carrying out a process of said Fourier transformation performed in the direction of a second axis on said data relocated among said processors.
- 3. A fast Fourier transformation method according to claim 2 wherein:
said first data part of each of said data portions is pieces of data included in a data array serving as an object of said Fourier transformation as even-numbered pieces of data each set in said direction of the second axis; and said second data part of each of said data portions is pieces of data included in said data array serving as an object of said Fourier transformation as odd-numbered pieces of data set in said direction of the second axis.
- 4. A fast Fourier transformation method according to claim 3 wherein, concurrently with said step of carrying out said Fourier-transformation performed in said direction of said second axis on said relocated data, every individual one of said processors relocates results of said Fourier transformation carried out in said direction of said first axis on said second data part of said data portion pertaining to said individual processor by reassigning said results to the other ones of said processors.
- 5. A fast Fourier transformation method according to claim 4, further comprising the steps of:
carrying out said Fourier transformation in said direction of said second axis on data of said relocated second data part of each of said data portions upon completion of said step of relocating said results of said Fourier transformation carried out in said direction of said first axis on said second data part of each of said data portions; and carrying out an end process of said Fourier transformation performed in said direction of said second axis on said data serving as an object of said Fourier transformation by using both results of said Fourier transformation performed in said direction of said second axis on said second data part of each of said data portions and results obtained earlier as results of said Fourier transformation performed in said direction of said second axis on said first data part of each of said data portions.
- 6. A 3-dimensional fast Fourier transformation method of implementing a 3-dimensional fast Fourier transformation in a parallel-processing computer comprising an input apparatus, a processing apparatus, which includes a plurality of processors each having one of memories and a network for transferring data among said memories employed for said processors, an output apparatus and an external storage apparatus, said 3-dimensional fast Fourier transformation method comprising the steps of:
dividing data into data portions each laid out on one of planes, which are oriented perpendicularly to the direction of a Z axis and arranged to form a rectangular solid with dimensions of NX, NY and NZ, where NX and NY are side lengths of said rectangular solid in the directions of X and Y axes respectively whereas NZ is a side length of said rectangular solid in said direction of said Z axis, and distributing said data portions to said processors in order to store said data portions in said memories employed for said processors; driving every individual one of said processors to carry out a transformation process in said direction of said Y axis only on data elements each having an even X coordinate; driving every individual one of said processors to carry out another transformation process in said direction of said Y axis only on data elements each having an odd X coordinate and, concurrently with said another transformation process, carry out a data transfer process on said data elements each having an even X coordinate so as to distribute data parts, which are each laid out on a plane perpendicular to said direction of said Y axis as a result of another division of said data, to said processors other than said individual processor in order to store said data parts in said memories employed for said other processors; driving every individual one of said processors to execute the first log2(NX−1) steps of a transformation process carried out in said direction of said X axis only on data elements each having an even X coordinate and, concurrently with said transformation process carried out in said direction of said X axis, carry out a data transfer process on said data elements each having an odd X coordinate so as to distribute said data parts, which are each laid out on a plane perpendicular to said direction of said Y axis as a result of said other division of said data, to said processors other than said individual processor in order to store said data parts in said memories employed for said other processors; driving every individual one of said processors to execute said first log2(NX−1) steps of said transformation process carried out in said direction of said X axis only on data elements each having an odd X coordinate; driving each of said processors to execute the last step of said transformation process carried out in said direction of said X axis; and driving each of said processors to carry out a transformation process in said direction of said Z axis.
- 7. A 1-dimensional fast Fourier transformation method of applying a 1-dimensional fast Fourier transformation to data at N points in a parallel-processing computer comprising an input apparatus, a processing apparatus, which includes a plurality of processors each having one of memories and a network for transferring data among said memories employed for said processors, an output apparatus and an external storage apparatus, said 1-dimensional fast Fourier transformation method comprising the steps of:
dividing data serving as an object of said Fourier transformation into data portions each laid out on one of planes, which are oriented perpendicularly to the direction of a Z axis and arranged to form a rectangular solid with dimensions of NX, NY and NZ, where NX and NY are side lengths of said rectangular solid in the directions of X and Y axes respectively whereas NZ is a side length of said rectangular solid in said direction of said Z axis, and distributing said data portions to said processors in order to store said data portions in said memories employed for said processors; driving every individual one of said processors to carry out a transformation process in said direction of said Y axis only on data elements each having an even X coordinate, and a multiplication process on twist coefficients; driving every individual one of said processors to carry out another transformation process in said direction of said Y axis only on data elements each having an odd X coordinate as well as a multiplication process on twist coefficients and, concurrently with said another transformation process and said multiplication process, carry out a data transfer process on said data elements each having an even X coordinate so as to distribute data parts, which are each laid out on a plane perpendicular to said direction of said Y axis as a result of another division of said data serving as an object of said Fourier transformation, to said processors other than said individual processor in order to store said data parts in said memories employed for said other processors; driving every individual one of said processors to execute the first log2(NX−1) steps of a transformation process carried out in said direction of said X axis only on data elements each having an even X coordinate and, concurrently with said transformation process carried out in said direction of said X axis, carry out a data transfer process on said data elements each having an odd X coordinate so as to distribute said data parts, which are each laid out on a plane perpendicular to said direction of said Y axis as a result of said other division of said data serving as an object of said Fourier transformation, to said processors other than said individual processor in order to store said data parts in said memories employed for said other processors; driving every individual one of said processors to execute said first log2(NX−1) steps of said transformation process carried out in said direction of said X axis only on data elements each have an odd X coordinate; driving each of said processors to execute the last step of said transformation process carried out in said direction of said X axis and a multiplication process on twist coefficients; and driving each of said processors to carry out a transformation process in said direction of said Z axis.
- 8. A fast Fourier transformation method of implementing a fast Fourier transformation in a parallel-processing computer comprising an input apparatus, a processing apparatus, which includes a plurality of processors each having one of memories and a network for transferring data among said memories employed for said processors, an output apparatus and an external storage apparatus, wherein:
a monitor for observing status of said processors employed in said parallel-processing computer and status of communications among said processors shows that processing carried out by said processors comprise the following four phases: a first phase of driving any individual one of said processors to carry out calculative operations only; a second phase of driving any individual one of said processors to carry out calculative operations as well as operations to transfer data to said processors other than said individual processor at the same time; a third phase of driving any individual one of said processors to carry out calculative operations as well as operations to transfer data to said processors other than said individual processor at the same time; and a fourth phase of driving any individual one of said processors to carry out calculative operations only.
- 9. A weather-forecast computation system for computing a weather forecast by application of a fast Fourier transformation implemented by using a parallel-processing computer, said weather-forecast computation system adopting a fast Fourier transformation method implementing a fast Fourier transformation in a parallel-processing computer comprising an input apparatus, a processing apparatus, which includes a plurality of processors each having one of memories and a network for transferring data among said memories employed for said processors, an output apparatus and an external storage apparatus, said fast Fourier transformation method comprising the steps of: dividing data serving as an object of said Fourier transformation into a plurality of data portions and distributing said data portions to said processors in order to store said data portions in said memories employed for said processors; further dividing each of said data portions distributed to said processors into a first data part and a second data part and driving every individual one of said processors to carry out a process on said first data part of said data portion distributed to said individual processor; and driving every individual one of said processors to carry out a process on said second data part of said data portion distributed to said individual processor and, at the same time, concurrently carry out processing to relocate results of said process carried out on said first data part by reassigning said results among said processors.
- 10. A electron-structure computation system for computing an electron structure by application of a fast Fourier transformation implemented by using a parallel-processing computer, said electron-structure computation system adopting a fast Fourier transformation method implementing a fast Fourier transformation in a parallel-processing computer comprising an input apparatus, a processing apparatus, which includes a plurality of processors each having one of memories and a network for transferring data among said memories employed for said processors, an output apparatus and an external storage apparatus, said fast Fourier transformation method comprising the steps of: dividing data serving as an object of said Fourier transformation into a plurality of data portions and distributing said data portions to said processors in order to store said data portions in said memories employed for said processors; further dividing each of said data portions distributed to said processors into a first data part and a second data part and driving every individual one of said processors to carry out a process on said first data part of said data portion distributed to said individual processor; and driving every individual one of said processors to carry out a process on said second data part of said data portion distributed to said individual processor and, at the same time, concurrently carry out processing to relocate results of said process carried out on said first data part by reassigning said results among said processors.
Priority Claims (1)
Number |
Date |
Country |
Kind |
2003-145607 |
May 2003 |
JP |
|