MCPcopy Create free account
hub / github.com/clMathLibraries/clBLAS / addScratchImages

Method addScratchImages

src/tests/functional/BlasBase-func.cpp:72–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

setImplementationMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected