and such codes worked good, but the value range they do is small, so I changed the codes:
struct tag_NodeHeader //
{
int nValValue:32;
int nValIndex:16;
int nGrowthCount:16;
};
union union_NodeHeader //
{
tag_NodeHeader tag_Fission; //fission state
__int64 nFusion; //fusion state
};
struct Thin_Node
{
__int64 nNodeHeader; //node
float FValue; //node’s F value
};
when I recompile the code, the error messages appeared as following:
1>Compiling…
1>Test.cu
1>tmpxft_00000d44_00000000-3_Test.cudafe1.gpu
1>tmpxft_00000d44_00000000-8_Test.cudafe2.gpu
1>### Assertion failure at line 1140 of …/…/be/cg/NVISA/exp_loadstore.cxx:
1>### Compiler Error in file C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/tmpxft_00000d44_00000000-9_Test.cpp3.i during Code_Expansion phase:
1>### NYI: deposit_bits for non-word size
1>nvopencc ERROR: C:\CUDA\toolkit\bin/…/open64/lib//be.exe returned non-zero status 1
1>Compiling…
1>main.cpp
1Linking…
1>LINK : fatal error LNK1181: Can not open file“.\Release\Test.objâ€
1>Login Saved in“file://e:\PGSA_GPU\Demo11\Release\BuildLog.htmâ€
1>Demo11 - 1 个Error,0 个Waring.
This kind of error message indicates an internal compiler error. Since the version of CUDA is stated as 2.3, I would suggest upgrading to CUDA 3.2. If the version number contains an inadvertent swizzle and this is actually CUDA 3.2, I would suggest filing a bug against the compiler.