|
1 | 1 | # ########################################################################
|
2 | 2 | # Copyright 2013 Advanced Micro Devices, Inc.
|
3 |
| -# |
| 3 | +# |
4 | 4 | # Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | # you may not use this file except in compliance with the License.
|
6 | 6 | # You may obtain a copy of the License at
|
7 |
| -# |
| 7 | +# |
8 | 8 | # http://www.apache.org/licenses/LICENSE-2.0
|
9 |
| -# |
| 9 | +# |
10 | 10 | # Unless required by applicable law or agreed to in writing, software
|
11 | 11 | # distributed under the License is distributed on an "AS IS" BASIS,
|
12 | 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
23 | 23 |
|
24 | 24 | # Common data and functions for the performance suite
|
25 | 25 |
|
26 |
| -tableHeader = 'lengthx,lengthy,lengthz,batch,device,inlay,outlay,place,ldsComp,ldsFrac,cache,xfactor,label,GFLOPS' |
27 |
| - |
28 | 26 | class TestCombination:
|
29 | 27 | def __init__(self,
|
30 | 28 | lengthx, lengthy, lengthz, batchsize,
|
@@ -115,7 +113,7 @@ def executable(library):
|
115 | 113 |
|
116 | 114 | def max_mem_available_in_bytes(exe, device):
|
117 | 115 | arguments = [exe, '-i', device]
|
118 |
| - |
| 116 | + |
119 | 117 | deviceInfo = subprocess.check_output(arguments, stderr=subprocess.STDOUT).split(os.linesep)
|
120 | 118 | deviceInfo = itertools.ifilter( lambda x: x.count('MAX_MEM_ALLOC_SIZE'), deviceInfo)
|
121 | 119 | deviceInfo = list(itertools.islice(deviceInfo, None))
|
@@ -250,7 +248,7 @@ def decode_parameter_problemsize(problemsize):
|
250 | 248 | return problemsize
|
251 | 249 |
|
252 | 250 | def blas_table_header():
|
253 |
| - return 'm,n,k,lda,ldb,ldc,offa,offb,offc,alpha,beta,order,transa,transb,side,uplo,diag,function,device,library,label,GFLOPS' |
| 251 | + return 'm,n,k,lda,ldb,ldc,offa,offb,offc,alpha,beta,order,transa,transb,side,uplo,diag,function,device,library,numQueues,label,GFLOPS' |
254 | 252 |
|
255 | 253 | class BlasTestCombination:
|
256 | 254 | def __init__(self,
|
@@ -329,5 +327,5 @@ def open_file( filename ):
|
329 | 327 | filename = filename + datetime.now().isoformat().replace(':','.')
|
330 | 328 | message = 'A file with the name ' + oldname + ' already exists. Changing filename to ' + filename
|
331 | 329 | print message
|
332 |
| - |
| 330 | + |
333 | 331 | return open(filename, 'w')
|
0 commit comments