-
Notifications
You must be signed in to change notification settings - Fork 530
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
Comments
Hip is closely tied to the hcc version.
On May 30, 2017, at 5:16 PM, tingxingdong <notifications@github.com<mailto:notifications@github.com>> wrote:
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)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#82>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ACYSAvJBXvj-8yzPTVnnY-mNhhPsOJ3bks5r_JUqgaJpZM4Nq6zm>.
|
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. |
Can you change the src/device_util.cpp as follows for quick fix?
…__device__ double __hip_fast_dsqrt_rd(double x) {
//return hc::fast_math::sqrt(x);
return hc::precise_math::sqrt(x);
}
__device__ double __hip_fast_dsqrt_rn(double x) {
//return hc::fast_math::sqrt(x);
return hc::precise_math::sqrt(x);
}
__device__ double __hip_fast_dsqrt_ru(double x) {
//return hc::fast_math::sqrt(x);
return hc::precise_math::sqrt(x);
}
__device__ double __hip_fast_dsqrt_rz(double x) {
//return hc::fast_math::sqrt(x);
return hc::precise_math::sqrt(x);
}
On Mon, Jun 5, 2017 at 9:07 PM, tingxingdong ***@***.***> wrote:
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.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#82 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AD_A925C5nYwRlVu8QoVDkckJ8V0_SPuks5sBCClgaJpZM4Nq6zm>
.
|
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. |
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)
The text was updated successfully, but these errors were encountered: