![]() |
|
|
#23 |
|
Jul 2009
Tokyo
2×5×61 Posts |
|
|
|
|
|
|
#24 |
|
"Carlos Pinho"
Oct 2011
Milton Keynes, UK
2×5×11×47 Posts |
My Windows 7 laptop graphic card is an ATI RADEON HD7670M but I don't think it has DP capability.
|
|
|
|
|
|
#25 |
|
"Mr. Meeseeks"
Jan 2012
California, USA
37·59 Posts |
finally, getting somewhere. My problem was trying to compile 64 bit code(the samples) on a 32 bit compiler...
Stupid me.
|
|
|
|
|
|
#26 | |
|
Jul 2009
Tokyo
61010 Posts |
Quote:
|
|
|
|
|
|
|
#27 |
|
Jul 2009
Tokyo
26216 Posts |
|
|
|
|
|
|
#29 | ||
|
Jul 2009
Tokyo
2×5×61 Posts |
Quote:
ooura fft. Code:
#include <math.h>
#include <stdio.h>
void fft(int n, double theta, double ar[], double ai[])
{
int m, mh, i, j, k;
double wr, wi, xr, xi;
for (m = n; (mh = m >> 1) >= 1; m = mh) {
for (i = 0; i < mh; i++) {
wr = cos(theta * i);
wi = sin(theta * i);
for (j = i; j < n; j += m) {
k = j + mh;
xr = ar[j] - ar[k];
xi = ai[j] - ai[k];
ar[j] += ar[k];
ai[j] += ai[k];
ar[k] = wr * xr - wi * xi;
ai[k] = wr * xi + wi * xr;
}
}
theta *= 2;
}
/* ---- unscrambler ---- */
i = 0;
for (j = 1; j < n - 1; j++) {
for (k = n >> 1; k > (i ^= k); k >>= 1);
if (j < i) {
xr = ar[j];
xi = ai[j];
ar[j] = ar[i];
ai[j] = ai[i];
ar[i] = xr;
ai[i] = xi;
}
}
}
int main()
{
double ar[1024],ai[1024];
double pi,theta;
int i,j,k,n;
n=32;
pi = 3.141592653589793;
theta=-2.0*pi/n;
for(i=0;i<n;i++)
{
ar[i]=i;
ai[i]=i;
}
fft(n,theta,ar,ai);
printf("ooura %.15e %.15e \n",ar[1],ai[1]);
}
Quote:
|
||
|
|
|
|
|
#30 | |
|
Jul 2009
Tokyo
2·5·61 Posts |
New Version.
Speed UP. Fix Compile warning error. HD7750: Quote:
|
|
|
|
|
|
|
#31 | |
|
Nov 2010
Germany
3×199 Posts |
Hi msft,
I just wanted to check if you are aware that the AMD support guy is waiting for some data from you? Quote:
When I see your results here, it really seems as if only specific FFTs are failing, and sometimes you get valid results? (I'm just very interested in this project - please don't feel pushed by me.) |
|
|
|
|
|
|
#32 |
|
"Mr. Meeseeks"
Jan 2012
California, USA
88716 Posts |
In PM, he said he is on a trip and will be back this weekend.
@Bdot: So I finally got Ubuntu x64 working.. do you think it is easier to compile for windows on windows or on linux(gcc-mingw)? |
|
|
|
|
|
#33 |
|
Jul 2009
Tokyo
11428 Posts |
Hi Bdot,
Thank you for your support. |
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| mfakto: an OpenCL program for Mersenne prefactoring | Bdot | GPU Computing | 1724 | 2023-06-04 23:31 |
| Can't get OpenCL to work on HD7950 Ubuntu 14.04.5 LTS | VictordeHolland | Linux | 4 | 2018-04-11 13:44 |
| OpenCL accellerated lattice siever | pstach | Factoring | 1 | 2014-05-23 01:03 |
| OpenCL for FPGAs | TObject | GPU Computing | 2 | 2013-10-12 21:09 |
| AMD's Graphics Core Next- a reason to accelerate towards OpenCL? | Belteshazzar | GPU Computing | 19 | 2012-03-07 18:58 |