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

can not build hip from source #82

Closed
tingxingdong opened this issue May 30, 2017 · 4 comments
Closed

can not build hip from source #82

tingxingdong opened this issue May 30, 2017 · 4 comments

Comments

@tingxingdong
Copy link

it is rocm-1.5 master branch

/home/tim/HIP/src/device_util.cpp:1219:10: error: call to 'sqrt' is ambiguous
return hc::fast_math::sqrt(x);
^~~~~~~~~~~~~~~~~~~
/opt/rocm/include/kalmar_math.h:654:16: note: candidate function
__fp16 sqrt(__fp16 x) { return __hc_sqrt_native_half(x); }
^
/opt/rocm/include/kalmar_math.h:657:15: note: candidate function
float sqrt(float x) { return fast_math::sqrtf(x); }
^
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:156:13: note: candidate function
__MATHCALL (sqrt,, (Mdouble __x));
^
/usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/cmath:482:3: note: candidate function
sqrt(float __x)
^
/usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/cmath:486:3: note: candidate function
sqrt(long double __x)

@bensander
Copy link
Contributor

bensander commented May 30, 2017 via email

@tingxingdong
Copy link
Author

The HCC version 1.0.17230-3c6b5e3-867ee62-d59c075 and 1.0.17215-a2e894b-349ec4f-b684991 both see such problems for both HIP develop-review and master branch.

@gargrahul
Copy link
Contributor

gargrahul commented Jun 5, 2017 via email

@tingxingdong
Copy link
Author

Thank you. I am able to build HIP. Building HIP (with the new compiler) is just the requirement of building rocBLAS. My main purpose is to test HCC compiler on rocBLAS not HIP functionalities. So the change of src/device_util is sufficient for me.

Yet, the above hcc does not pass cmake configurations which, I guess, is out of this issue's scope.

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

3 participants