Hello everybody,
I can not compile my Programm and I’m unable to solve the Problem.
I hope sombody can halp me.
This is the code of my cu file
[codebox]
#include <cuda.h>
#include <cutil_inline.h>
#include “stdafx.h”
#include “graka_audio.h”
#pragma comment (lib,“cudart.lib”)
global void grakaFastConv(cufftComplex* Audio, cufftComplex* Filter, int N)
{
int i = threadIdx.x;
Audio[i].x = Filter[i].x * Audio[i].x - Filter[i].y * Audio[i].y;
Audio[i].y = Filter[i].x * Audio[i].y - Audio[i].x * Filter[i].y;
}
void fastConvGraka(cufftComplex* Audio, cufftComplex* Filter, int N)
{
grakaFastConv <<< 1, N >>> (Audio,Filter, N);
}[/codebox]
And this is the Answer when I try to compile:
[codebox]
1>------ Erstellen gestartet: Projekt: graka_audio, Konfiguration: Debug Win32 ------
1>Compiling…
1>cudaKernel.cu
1>tmpxft_000016e0_00000000-3_cudaKernel.cudafe1.gpu
1>tmpxft_000016e0_00000000-8_cudaKernel.cudafe2.gpu
1>tmpxft_000016e0_00000000-3_cudaKernel.cudafe1.cpp
1>tmpxft_000016e0_00000000-12_cudaKernel.ii
1>Kompilieren…
1>graka_audio.cpp
1>d:\medienprojekt\programmierung\graka_audio_kernel\graka_audio\cudaKernel.cu(15) : error C2065: ‘threadIdx’: nichtdeklarierter Bezeichner
1>d:\medienprojekt\programmierung\graka_audio_kernel\graka_audio\cudaKernel.cu(15) : error C2228: Links von “.x” muss sich eine Klasse/Struktur/Union befinden.
1> Typ ist ‘‘unknown-type’’
1>d:\medienprojekt\programmierung\graka_audio_kernel\graka_audio\cudaKernel.cu(24) : error C2059: Syntaxfehler: ‘<’
1>Das Buildprotokoll wurde unter “file://d:\medienprojekt\programmierung\graka_audio_kernel\graka_audio\Debug\BuildLog.htm” gespeichert.
1>graka_audio - 3 Fehler, 0 Warnung(en)
========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ==========
[/codebox]
Does anybody know what the Problem is??
Thanks