kernel void bestMatch(int2 matches<>, reduce int2 bestmatch) {
if (matches.x > bestmatch.x) {
bestmatch.x = matches.x;
bestmatch.y = matches.y;
}
}
Forum URL : http://forums.amd.com/forum/messageview.cfm?catid=328&threadid=107372&forumid=9
Gives error
1>WARNING: ASSERT(GetResultSymbol().IsValid() + mDataTypeValue.IsValid() >= 1)
failed
1>While processing <buffer>:234
1>In compiler at AST: elayedLookup::ResolveSymbols()[astdelayedlookup.cpp:139]
1> *mName = __indexof_bestmatch
1>Message: unknown symbol
1>ERROR: ASSERT(errorCount==0) failed
1>While processing <buffer>:242
1>In compiler at AST::Root::CompileShaderToStream()[astroot.cpp:157]
1> errorCount = 1
1>Message: Unknown Symbols exist
1>Aborting...
1>Problem with compiling
u:\GPGPU\mygzip\ati\\brookgenfiles\hello_brook_bestMatch_addr.hlsl