README.md 980 Bytes
Newer Older
Nichols, Stephen's avatar
Nichols, Stephen committed
1
2
# RocFFT_Example_Code

Nichols, Stephen's avatar
Nichols, Stephen committed
3
C++ code to demonstrate using rocFFT. 
Nichols, Stephen's avatar
Nichols, Stephen committed
4

Nichols, Stephen's avatar
Nichols, Stephen committed
5
6
The build.sh script sources setUpModules.sh to build the code on OLCF Crusher.
The batch.sh script sources setUpModules.sh to run via slurm on OLCF Crusher.
Nichols, Stephen's avatar
Nichols, Stephen committed
7

Nichols, Stephen's avatar
Nichols, Stephen committed
8
9
The input file has the following form:  
nx ny nz    
Nichols, Stephen's avatar
Nichols, Stephen committed
10
Real_or_Complex     
Nichols, Stephen's avatar
Nichols, Stephen committed
11
12
InPlace_or_NotInPlace   
Num_Threads 
Nichols, Stephen's avatar
Nichols, Stephen committed
13

Nichols, Stephen's avatar
Nichols, Stephen committed
14
nx, ny, nz are the dimensions of the array.  The forward and inverse transforms are performed on the first index of the array. Each transform pencil is "nx" values long, and you perform "ny x nz" of them.
Nichols, Stephen's avatar
Nichols, Stephen committed
15

Nichols, Stephen's avatar
Nichols, Stephen committed
16
17
18
Real_or_Complex:        
1 for real-to-complex forward transform and complex-to-real inverse transform      
2 for complex-to-complex forward and inverse transforms
Nichols, Stephen's avatar
Nichols, Stephen committed
19

Nichols, Stephen's avatar
Nichols, Stephen committed
20
21
22
InPlace_or_NotInPlace:      
1 for in_place transforms (only one array is needed)        
2 for not-in_place transforms (need two arrays)
Nichols, Stephen's avatar
Nichols, Stephen committed
23
24

Num_Threads is the number of CPU threads that are used to initialize the arrays and to check the error after the inverse transform.
Nichols, Stephen's avatar
Nichols, Stephen committed
25
26