@@ -1220,7 +1220,7 @@ bool CISA_IR_Builder::CISA_input_directive(char* var_name, short offset, unsigne
1220
1220
status = m_kernel->CreateVISAInputVar ((VISA_GenVar *)temp,offset,size);
1221
1221
if (status != CM_SUCCESS)
1222
1222
{
1223
- std::cerr<< " Failed to create input Var. Line: " <<line_no<<std::endl ;
1223
+ std::cerr << " Failed to create input Var. Line: " <<line_no << " \n " ;
1224
1224
return false ;
1225
1225
}
1226
1226
return true ;
@@ -1230,9 +1230,13 @@ bool CISA_IR_Builder::CISA_attr_directive(
1230
1230
const char * input_name, const char * input_var, int line_no)
1231
1231
{
1232
1232
1233
- if (strcmp (input_name, " AsmName" ) == 0 ||
1233
+ if (strcmp (input_name, " AsmName" ) == 0 ||
1234
1234
strcmp (input_name, " OutputAsmPath" ) == 0 )
1235
1235
{
1236
+ if (strcmp (input_name, " AsmName" ) == 0 ) {
1237
+ std::cerr << " WARNING: AsmName deprecated "
1238
+ " (replace with OutputAsmPath)\n " ;
1239
+ }
1236
1240
input_name = " OutputAsmPath" ; // normalize to new name
1237
1241
1238
1242
char asmFileName[MAX_OPTION_STR_LENGTH];
@@ -1246,17 +1250,18 @@ bool CISA_IR_Builder::CISA_attr_directive(
1246
1250
m_options.setOptionInternally (VISA_AsmFileName, asmFileName);
1247
1251
}
1248
1252
1249
- if (strcmp (input_name, " Target" ) == 0 ){
1253
+ if (strcmp (input_name, " Target" ) == 0 ) {
1250
1254
unsigned char visa_target;
1251
- if (strcmp (input_var, " cm" ) == 0 )
1252
- {
1255
+ MUST_BE_TRUE (input_var,
1256
+ " .kernel_attr Target=.. must be \" cm\" , \" 3d\" , or \" cs\" " );
1257
+ if (strcmp (input_var, " cm" ) == 0 ) {
1253
1258
visa_target = VISA_CM;
1254
1259
}
1255
- else if (strcmp (input_var, " 3d" ) == 0 )
1260
+ else if (strcmp (input_var, " 3d" ) == 0 )
1256
1261
{
1257
1262
visa_target = VISA_3D;
1258
1263
}
1259
- else if (strcmp (input_var, " cs" ) == 0 )
1264
+ else if (strcmp (input_var, " cs" ) == 0 )
1260
1265
{
1261
1266
visa_target = VISA_CS;
1262
1267
}
0 commit comments