AMD Logo AMD Developer Central
AMD Developer Forums
Decrease font size
Increase font size
Topic Title: cl.hpp != cl.hpp ?!?!?!
Topic Summary: Differencies, that should not be...
Created On: 11/05/2009 05:48 AM
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
View similar topics View similar topics
View topic in raw text format. Print this topic.
 11/05/2009 05:48 AM
User is offline View Users Profile Print this message

Author Icon
Stib

Posts: 47
Joined: 10/22/2009

I found out, that the cl.hpp that Ati Stream installed to my system, is not exactly that, what is in the Khronos group, OpenCL API registry. I searched for differencies, and found some.

Code:
At the beginning, there are some differencies, by the copyrights comments. But because they are comments, its nothing in particular.

The next, and first issue is:

Khronos, row 3146:

                &::clGetKernelWorkGroupInfo, object_, device(), name, param),

Stream, row 3125:

                &::clGetKernelWorkGroupInfo, device(), object_, name, param),

The order of the arguments is not exact the same. I don't really know if it matters or not, but i thought i mention it...

And the next, and last issue is (surprise), with one of the getWorkGroupInfo functors:

Khronos, starting at row 3169:

    detail::param_traits<detail::cl_kernel_work_group_info, name>::param_type
   getWorkGroupInfo(const Device& device, cl_int* err = NULL) const
    {
        typename detail::param_traits<
            detail::cl_kernel_work_group_info, name>::param_type param;
        cl_int result = getWorkGroupInfo(device, name, &param);
        if (err != NULL) {
            *err = result;
        }
        return param;
    }

And Stream, starting at row 3148:

    detail::param_traits<detail::cl_kernel_work_group_info, name>::param_type
    getWorkGroupInfo(cl_int* err = NULL) const
    {
        typename detail::param_traits<
            detail::cl_kernel_work_group_info, name>::param_type param;
        cl_int result = getWorkGroupInfo(name, &param);
        if (err != NULL) {
            *err = result;
        }
        return param;
    }


I hope this helps to correct this error in the future relases of Stream 2.0!
 11/05/2009 03:17 PM
User is offline View Users Profile Print this message

Author Icon
Stib

Posts: 47
Joined: 10/22/2009

Thank you Stib! We alredy knew about the issue, but it is nice of you, for trying to notice us. Keep up the good work, and learn pal!

 

...

Statistics
6123 users are registered to the AMD Developer Forums forum.
There are currently 1 users logged in.

FuseTalk Hosting Executive Plan v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.

Contact AMD | Terms and Conditions | Forum Rules | ©2009 Advanced Micro Devices, Inc. | Privacy | Trademark information