Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler errors, please help #14

Open
hiratz opened this issue Apr 24, 2019 · 0 comments
Open

Compiler errors, please help #14

hiratz opened this issue Apr 24, 2019 · 0 comments

Comments

@hiratz
Copy link

hiratz commented Apr 24, 2019

When I compiled the application "csr" with the command line "./configure --prefix=$HOME --with-apps=csr", I got the errors below (it seems that two types do not match). Even if I added the opencl-sdk path to the command line "./configure --prefix=$HOME --with-apps=csr --with-opencl-sdk=/opt/intel/opencl-sdk", I still got these errors. Any help is appreciated!

include/common_args.c: In function ‘ocd_finalize’: include/rdtsc.h:235:34: error: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘cl_ulong {aka long unsigned int}’ [-Werror=format=] #define OCD_PRINT_TIMERS {printf("********************************************************************************\n"\ ^ include/rdtsc.h:273:5: note: in expansion of macro ‘OCD_PRINT_TIMERS’ OCD_PRINT_TIMERS\ ^ include/common_args.c:258:2: note: in expansion of macro ‘TIMER_PRINT’ TIMER_PRINT ^ include/rdtsc.h:235:34: error: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘cl_ulong {aka long unsigned int}’ [-Werror=format=] #define OCD_PRINT_TIMERS {printf("********************************************************************************\n"\ ^ include/rdtsc.h:273:5: note: in expansion of macro ‘OCD_PRINT_TIMERS’ OCD_PRINT_TIMERS\ ^ include/common_args.c:258:2: note: in expansion of macro ‘TIMER_PRINT’ TIMER_PRINT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant