DOT
| 2922 | |
| 2923 | // DOT |
| 2924 | clblasStatus |
| 2925 | clMath::clblas::dot( |
| 2926 | DataType type, |
| 2927 | size_t N, |
| 2928 | cl_mem dotProduct, |
| 2929 | size_t offDP, |
| 2930 | cl_mem X, |
| 2931 | size_t offx, |
| 2932 | int incx, |
| 2933 | cl_mem Y, |
| 2934 | size_t offy, |
| 2935 | int incy, |
| 2936 | cl_mem scratchBuff, |
| 2937 | cl_uint numCommandQueues, |
| 2938 | cl_command_queue *commandQueues, |
| 2939 | cl_uint numEventsInWaitList, |
| 2940 | const cl_event *eventWaitList, |
| 2941 | cl_event *events) |
| 2942 | |
| 2943 | { |
| 2944 | switch(type){ |
| 2945 | |
| 2946 | case TYPE_FLOAT: |
| 2947 | return clblasSdot( N, dotProduct, offDP, X, offx, incx, Y, |
| 2948 | offy, incy, scratchBuff, |
| 2949 | numCommandQueues,commandQueues, numEventsInWaitList, |
| 2950 | eventWaitList, events); |
| 2951 | |
| 2952 | case TYPE_DOUBLE: |
| 2953 | return clblasDdot( N, dotProduct, offDP, X, offx, incx, Y, |
| 2954 | offy, incy, scratchBuff, |
| 2955 | numCommandQueues,commandQueues, numEventsInWaitList, |
| 2956 | eventWaitList, events); |
| 2957 | |
| 2958 | case TYPE_COMPLEX_FLOAT: |
| 2959 | return clblasCdotu( N, dotProduct, offDP, X, offx, incx, Y, |
| 2960 | offy, incy, scratchBuff, |
| 2961 | numCommandQueues,commandQueues, numEventsInWaitList, |
| 2962 | eventWaitList, events); |
| 2963 | |
| 2964 | case TYPE_COMPLEX_DOUBLE: |
| 2965 | return clblasZdotu( N, dotProduct, offDP, X, offx, incx, Y, |
| 2966 | offy, incy, scratchBuff, |
| 2967 | numCommandQueues,commandQueues, numEventsInWaitList, |
| 2968 | eventWaitList, events); |
| 2969 | |
| 2970 | default: |
| 2971 | return clblasInvalidValue; |
| 2972 | } |
| 2973 | |
| 2974 | } |
| 2975 | |
| 2976 | |
| 2977 | //ASUM |
nothing calls this directly
no test coverage detected