File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
amd/comgr/test-lit/comgr-sources Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -27,11 +27,11 @@ int main(int argc, char *argv[]) {
27
27
SizeSource = setBuf (argv [1 ], & BufSource );
28
28
29
29
amd_comgr_language_t OpenCLVersion ;
30
- if (strcmp (argv [3 ], "1.2" )) {
30
+ if (strcmp (argv [3 ], "1.2" ) == 0 ) {
31
31
OpenCLVersion = AMD_COMGR_LANGUAGE_OPENCL_1_2 ;
32
32
}
33
- else if (strcmp (argv [3 ], "2.0" )) {
34
- OpenCLVersion = AMD_COMGR_LANGUAGE_OPENCL_1_2 ;
33
+ else if (strcmp (argv [3 ], "2.0" ) == 0 ) {
34
+ OpenCLVersion = AMD_COMGR_LANGUAGE_OPENCL_2_0 ;
35
35
}
36
36
else
37
37
fail ("unsupported OCL version: %s" , argv [3 ]);
@@ -44,7 +44,7 @@ int main(int argc, char *argv[]) {
44
44
45
45
amd_comgr_ (create_action_info (& DataAction ));
46
46
amd_comgr_ (
47
- action_info_set_language (DataAction , AMD_COMGR_LANGUAGE_OPENCL_1_2 ));
47
+ action_info_set_language (DataAction , OpenCLVersion ));
48
48
amd_comgr_ (action_info_set_isa_name (DataAction , "amdgcn-amd-amdhsa--gfx900" ));
49
49
amd_comgr_ (action_info_set_option_list (DataAction , CodeGenOptions ,
50
50
CodeGenOptionsCount ));
You can’t perform that action at this time.
0 commit comments