| 71 | } |
| 72 | |
| 73 | clblasStatus |
| 74 | BlasBase::addScratchImages(void) |
| 75 | { |
| 76 | //cl_ulong memSize, allocSize; |
| 77 | //size_t width, height; |
| 78 | //clblasStatus status; |
| 79 | //float scale; |
| 80 | |
| 81 | ///* |
| 82 | // * get maximum amount of memory each image can takes, not |
| 83 | // * forgetting that it can be up to three matrices residing |
| 84 | // * in memory objects |
| 85 | // */ |
| 86 | //allocSize = maxMemAllocSize(); |
| 87 | //memSize = availGlobalMemSize(0); |
| 88 | //if (allocSize > memSize / 5) { |
| 89 | // allocSize = memSize / 5; |
| 90 | // scale = 1.4f; |
| 91 | //} |
| 92 | //else { |
| 93 | // scale = 1.5f; |
| 94 | //} |
| 95 | |
| 96 | //height = static_cast<size_t>(sqrt(static_cast<double>(allocSize) / sizeof(cl_float))); |
| 97 | //width = height / 4; |
| 98 | //height = static_cast<size_t>(height / scale); |
| 99 | //width = static_cast<size_t>(width * scale); |
| 100 | |
| 101 | //if (height > imageMaxHeight(context_)) { |
| 102 | // height = imageMaxHeight(context_); |
| 103 | //} |
| 104 | //if (width > imageMaxWidth(context_)) { |
| 105 | // width = imageMaxWidth(context_); |
| 106 | //} |
| 107 | |
| 108 | //imageA_ = clblasAddScratchImage(context_, width, height, &status); |
| 109 | //if (imageA_) { |
| 110 | // imageB_ = clblasAddScratchImage(context_, width, height, &status); |
| 111 | //} |
| 112 | |
| 113 | //return status; |
| 114 | return clblasNotImplemented; |
| 115 | |
| 116 | } |
| 117 | |
| 118 | } // namespace |
nothing calls this directly
no outgoing calls
no test coverage detected