[clfft] 104/128: Readme changes to add build badges for master/develop and appveyor
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Thu Oct 22 14:54:44 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch master
in repository clfft.
commit 7e2ec73c547395f2dd2d304d4198841c5d4b9e46
Author: Kent Knox <kent.knox at amd>
Date: Sun Oct 11 18:49:42 2015 -0500
Readme changes to add build badges for master/develop and appveyor
---
README.md | 22 +++++++++++++---------
1 file changed, 13 insertions(+), 9 deletions(-)
diff --git a/README.md b/README.md
index cd982dc..3121e0f 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,11 @@
+## Build Status
+| Build branch | master | develop |
+|-----|-----|-----|
+| GCC/Clang x64 | [](https://travis-ci.org/clMathLibraries/clFFT/branches) | [](https://travis-ci.org/clMathLibraries/clFFT/branches) |
+| Visual Studio x64 | |[](https://ci.appveyor.com/project/kknox/clfft-whc3m/branch/develop) |
+
clFFT
=====
-[](https://travis-ci.org/clMathLibraries/clFFT)
-
clFFT is a software library containing FFT functions written
in OpenCL. In addition to GPU devices, the libraries also support
running on CPU devices to facilitate debugging and heterogeneous
@@ -109,12 +113,12 @@ int main( void )
cl_event event = NULL;
int ret = 0;
size_t N = 16;
-
+
/* FFT library realted declarations */
clfftPlanHandle planHandle;
clfftDim dim = CLFFT_1D;
size_t clLengths[1] = {N};
-
+
/* Setup OpenCL environment. */
err = clGetPlatformIDs( 1, &platform, NULL );
err = clGetDeviceIDs( platform, CL_DEVICE_TYPE_GPU, 1, &device, NULL );
@@ -131,7 +135,7 @@ int main( void )
/* Allocate host & initialize data. */
/* Only allocation shown for simplicity. */
X = (float *)malloc(N * 2 * sizeof(*X));
-
+
/* Prepare OpenCL memory objects and place data inside them. */
bufX = clCreateBuffer( ctx, CL_MEM_READ_WRITE, N * 2 * sizeof(*X), NULL, &err );
@@ -140,15 +144,15 @@ int main( void )
/* Create a default plan for a complex FFT. */
err = clfftCreateDefaultPlan(&planHandle, ctx, dim, clLengths);
-
+
/* Set plan parameters. */
err = clfftSetPlanPrecision(planHandle, CLFFT_SINGLE);
err = clfftSetLayout(planHandle, CLFFT_COMPLEX_INTERLEAVED, CLFFT_COMPLEX_INTERLEAVED);
err = clfftSetResultLocation(planHandle, CLFFT_INPLACE);
-
+
/* Bake the plan. */
err = clfftBakePlan(planHandle, 1, &queue, NULL, NULL);
-
+
/* Execute the plan. */
err = clfftEnqueueTransform(planHandle, CLFFT_FORWARD, 1, &queue, 0, NULL, NULL, &bufX, NULL, NULL);
@@ -162,7 +166,7 @@ int main( void )
clReleaseMemObject( bufX );
free(X);
-
+
/* Release the plan. */
err = clfftDestroyPlan( &planHandle );
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/clfft.git
More information about the debian-science-commits
mailing list