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

Function getDTypeArray

src/library/tools/tune/storage_data.c:126–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126size_t
127getDTypeArray(DataType * dTypes, size_t dtypeCount, DeviceInfo* defInf )
128{
129 if (dtypeCount < 4) {
130 return 0;
131 }
132 if (defInf->nativeDouble) {
133 if (defInf->nativeComplex) {
134 dTypes[0] = TYPE_FLOAT;
135 dTypes[1] = TYPE_COMPLEX_FLOAT;
136 dTypes[2] = TYPE_DOUBLE;
137 dTypes[3] = TYPE_COMPLEX_DOUBLE;
138 dtypeCount = 4;
139 }
140 else {
141 dTypes[0] = TYPE_FLOAT;
142 dTypes[1] = TYPE_DOUBLE;
143 dtypeCount = 2;
144 }
145 }
146 else {
147 if (defInf->nativeComplex) {
148 dTypes[0] = TYPE_FLOAT;
149 dTypes[1] = TYPE_COMPLEX_FLOAT;
150 dtypeCount = 2;
151 }
152 else {
153 dTypes[0] = TYPE_FLOAT;
154 dtypeCount = 1;
155 }
156 }
157 return dtypeCount;
158}
159
160void
161initParamData (BlasParamInfo* bParam, int dim)

Callers 1

genExtraDatasForPatternFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected