cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

rxg
Journeyman III

struct problem???

I have defined two struct in my code as followinr:

//////////////////////////////////////////////////////////////

typedef struct CELL_REF
    {
 float C ;
 float N ;
 float S ;
 float E ;
 float W ;
 float T ;
 float B ;
 float NE ;
 float NW ;
 float SE ;
 float SW ;
 float NT ;
 float NB ;
 float ST ;
 float SB ;
 float ET ;
 float EB ;
 float WT ;
 float WB ;
 float FLAGS ; 
} CELL;
 
typedef struct CELL_PARA_REF
 {
 float UX  ;
 float UY ;
 float UZ ;
 float U2 ;
 float RHO ;
} CELL_PARA;

//////////////////////////////////////////////////////////////////

And the first struct "CELL" have been called as following:

/////////////////////////////////////////////////////////////////////////////////////////////////

LBM_handleInOutFlow_Head_GPU( CELL srcStreamin[][][] ,  out  CELL srcStreamout<>

{

..........

}

///////////////////////////////////////////////////////////////////////////////////////////////

But I have received errors as follow:

Timer.cpp
out_of_core_matmult.cpp
c:\program files\amd\amd brook+ 1.2.1_beta\sdk\include\brook\brt.hpp(1172) : error C2327: '__cpustruct_CELL_REF::T' : is not a type name, static, or enumerator
        c:\program files\amd\amd brook+ 1.2.1_beta\samples\rxg_poj\out_of_core_matmult\built\out_of_core_matmult.cpp(303) : see reference to class template instantiation 'Addressable' being compiled
        with
        [
            T=__cpustruct_CELL
        ]
c:\program files\amd\amd brook+ 1.2.1_beta\sdk\include\brook\brt.hpp(1172) : error C2327: '__cpustruct_CELL_REF::T' : is not a type name, static, or enumerator
c:\program files\amd\amd brook+ 1.2.1_beta\sdk\include\brook\brt.hpp(1173) : error C2327: '__cpustruct_CELL_REF::T' : is not a type name, static, or enumerator
c:\program files\amd\amd brook+ 1.2.1_beta\sdk\include\brook\brt.hpp(1173) : error C2327: '__cpustruct_CELL_REF::T' : is not a type name, static, or enumerator
c:\program files\amd\amd brook+ 1.2.1_beta\sdk\include\brook\brt.hpp(1176) : error C2327: '__cpustruct_CELL_REF::T' : is not a type name, static, or enumerator
c:\program files\amd\amd brook+ 1.2.1_beta\sdk\include\brook\brt.hpp(1176) : error C2327: '__cpustruct_CELL_REF::T' : is not a type name, static, or enumerator
c:\program files\amd\amd brook+ 1.2.1_beta\sdk\include\brook\brt.hpp(1181) : error C2327: '__cpustruct_CELL_REF::T' : is not a type name, static, or enumerator
c:\program files\amd\amd brook+ 1.2.1_beta\sdk\include\brook\brt.hpp(1181) : error C2327: '__cpustruct_CELL_REF::T' : is not a type name, static, or enumerator

Generating Code...

//////////////////////////////////////////////////////////////////////////

what's wrong with it?

0 Likes
1 Reply

rxg,
If you can provide a test case to streamdeveloper@amd.com, then they can help you out with this specific problem.
0 Likes