- added example05 for clfft real in-place transform
- added readme to example04 for installing clfft
This commit is contained in:
32
example04/README.md
Normal file
32
example04/README.md
Normal file
@@ -0,0 +1,32 @@
|
||||
# example 04
|
||||
|
||||
## Installing CLFFT
|
||||
After cloning the repository, run the following (in the top-level of the directory):
|
||||
|
||||
```
|
||||
git clone https://github.com/clMathLibraries/clFFT.git
|
||||
cd clFFT
|
||||
mkdir build
|
||||
cd build
|
||||
cmake ../src
|
||||
make
|
||||
make install
|
||||
```
|
||||
|
||||
and then
|
||||
|
||||
```
|
||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:`pwd`/clFFT/build/package/lib64
|
||||
```
|
||||
|
||||
(`pwd` should give the path to the top-level of the repository!).
|
||||
|
||||
## Running it
|
||||
In the top-level directory, run
|
||||
|
||||
```
|
||||
make ex04
|
||||
./example04/bin/Example
|
||||
```
|
||||
|
||||
and it should print out a vector! :hamburger:
|
||||
@@ -107,9 +107,7 @@ int main( int argc, char* argv[] ) {
|
||||
clfftEnqueueTransform(planHandleForward, CLFFT_FORWARD, 1, &queue, 0, NULL, NULL, &inputBuffers, NULL, NULL);
|
||||
clFinish(queue);
|
||||
|
||||
err = clEnqueueNDRangeKernel(queue, k_mult, 1, NULL, &globalSize, &localSize, 0, NULL, NULL);
|
||||
if (err != CL_SUCCESS)
|
||||
printf("oh wtf\n");
|
||||
err = clEnqueueNDRangeKernel(queue, k_mult, 1, NULL, &globalSize, &localSize, 0, NULL, NULL);
|
||||
|
||||
clfftEnqueueTransform(planHandleBackward, CLFFT_BACKWARD, 1, &queue, 0, NULL, NULL, &inputBuffers, NULL, NULL);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user