Displaying 20 results from an estimated 26 matches for "matmul".
2013 May 20
2
[LLVMdev] Polly issue
Hi,
When I test "matmul" in the polly directory, I get the following
performance data:
//===============================
--> 12. Compare the runtime of the executables
time ./matmul.normalopt.exe
0:23.53 real, 23.48 user, 0.00 sys
time ./matmul.polly.interchanged.exe
0:22.86 real, 22.82 user, 0.01 sys
time ./matm...
2012 Jul 31
3
[LLVMdev] [DragonEgg] Mysterious FRAME coming from gimple to LLVM
Hi Duncan,
A DragonEgg/GCC-related question: do you know where these strange FRAME
tokens originate from (e.g. %struct.FRAME.matmul)? Compiling simple Fortran
code with DragonEgg:
> cat matmul.f90
subroutine matmul(nx, ny, nz)
implicit none
integer :: nx, ny, nz
real, dimension(nx, ny) :: A
real, dimension(ny, nz) :: B
real, dimension(nx, nz) :: C
integer :: i, j, k
real, volatile :: start, finish
call...
2016 Nov 10
2
Polly | Dependence detection details
Hi everyone,
I'll be very thankful if anyone can help me. I want to extract the
dependences details by using polly.
I followed the following steps on example code matmul.c:
1. clang -S -emit-llvm matmul.c -o matmul.s
2. opt -S -polly-canonicalize matmul.s > matmul.preopt.ll
3. opt -basicaa -polly-dependences -analyze matmul.preopt.ll
But it doesn't show me the dependences. I have tried -debug also but still
dependces are not shown.
I'll be gratefu...
2012 Jul 31
0
[LLVMdev] [DragonEgg] Mysterious FRAME coming from gimple to LLVM
...is it possible to disable those FRAME-s? Important for
accurate CLooG/Polly handling.
- D.
2012/7/31 Dmitry N. Mikushin <maemarcus at gmail.com>
> Hi Duncan,
>
> A DragonEgg/GCC-related question: do you know where these strange FRAME
> tokens originate from (e.g. %struct.FRAME.matmul)? Compiling simple Fortran
> code with DragonEgg:
>
> > cat matmul.f90
>
> subroutine matmul(nx, ny, nz)
> implicit none
>
> integer :: nx, ny, nz
> real, dimension(nx, ny) :: A
> real, dimension(ny, nz) :: B
> real, dimension(nx, nz) :: C
>
>...
2012 Apr 18
2
[LLVMdev] how to get path profile information ?
...ed some related posted messages, such as:
http://lists.cs.uiuc.edu/pipermail/llvmdev/2008-January/012315.html and
http://lists.cs.uiuc.edu/pipermail/llvmdev/2008-February/012466.html
After getting rid of some error messages, I was able to run the following
commands:
1) opt -insert-path-profiling matmul.bc -o matmul.pp.bc
2) lli -load ../llvm_build/Debug+Asserts/lib/libprofile_rt.so matmul.pp.bc
(generates llvmprof.out file)
and as a last command:
3) opt -path-profile-loader -profile-info-file=llvmprof.out matmul.pp.bc
-analyze
which provides the following output:
Printing analysis 'Load pa...
2012 Apr 18
0
[LLVMdev] how to get path profile information ?
...ed some related posted messages, such as:
http://lists.cs.uiuc.edu/pipermail/llvmdev/2008-January/012315.html and
http://lists.cs.uiuc.edu/pipermail/llvmdev/2008-February/012466.html
After getting rid of some error messages, I was able to run the following commands:
1) opt -insert-path-profiling matmul.bc -o matmul.pp.bc
2) lli -load ../llvm_build/Debug+Asserts/lib/libprofile_rt.so matmul.pp.bc (generates llvmprof.out file)
and as a last command:
3) opt -path-profile-loader -profile-info-file=llvmprof.out matmul.pp.bc -analyze
which provides the following output:
Printing analysis 'Load pa...
2009 Mar 31
1
error during DPpackage compilation
...? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1
LDDPdensity.f:291: (continued):
? ? ? ? ?open(unit=1,file='dppackage1.out',status='unknown',
? ? ? ? ?2
Invalid declaration of or reference to symbol `worksam' at (2) [initially
seen at (1)]
LDDPdensity.f:430:
? ? ? ? ? ? xty2=matmul(xtx2,mub)
? ? ? ? ? ? ^
Expression at (^) has incorrect data type or rank for its context
LDDPdensity.f:430: warning:
? ? ? ? ? ? xty2=matmul(xtx2,mub)
? ? ? ? ? ? ? ? ?^
Reference to unimplemented intrinsic `MATMUL' at (^) (assumed EXTERNAL)
LDDPdensity.f:430:
? ? ? ? ? ? xty2=matmul(xtx2,mub...
2017 Apr 28
2
LLVMGetFirstFunction() / LLVMGetNextFunction( ) problem
Hi, I have a problem - looking for advice.
I have a source code file with two functions which are compiled into a .bc
file.
When the bitcode file is loaded, I can dump the module and see the two
functions:
...
; Materializable
; Function Attrs: noinline nounwind uwtable
define void @matmul(double*, double*, double*, i32, i32, i32) #0 {}
; Materializable
; Function Attrs: noinline nounwind uwtable
define i32 @main() #0 {}
...
However, when I use LLVMGetirstFunction() and LLVMGetNextFunction() to
iterate through the functions in the module, it only iterates through the
function "...
2013 Feb 27
0
Bigalgebra and irlba error
When running irlba on a big.matrix as in the example from the vignette (on Windows R 2.15.2 64 bit) it returns with an error (see below). irlba works fine on a regular R matrix
> library(bigalgebra)
> library(irlba)
Loading required package: Matrix
Loading required package: lattice
> matmul <- function(A, x, transpose=FALSE)
+ {
+ if(transpose) {return(t( t(x) %*% A))}# i.e., t(A) %*% x
+ return (A %*% x)
+ }
> set.seed(1)
> A <- matrix(rnorm(100),10)
> a <- as.big.matrix(A)
> La <- irlba(a, nu=2, nv=2, matmul=matmul)
Error in W[, j] <- matmul(A,...
2016 Feb 03
3
opt with Polly doesn't find the passes
...TO_BUILD \
$SRC
The build went fine, even 'make check-polly' looks okay:
Scanning dependencies of target check-polly
[100%] Running polly regression tests
Testing Time: 37.39s
Expected Passes : 574
Expected Failures : 17
[100%] Built target check-polly
Now, I like to follow the matmul example in polly. But whatever polly
pass I am trying to run opt seem to not find it:
opt -load ~/toolchain/install/llvm-3.8/lib/libPolly.so -S
-polly-canonicalize matmul.s > matmul.preopt.ll
opt: Unknown command line argument '-polly-canonicalize'. Try: 'opt -help'
opt: Did...
2009 Aug 12
2
Problem with function in fortran 95
I am writing a function in fortran 95, but the intrinsic function MATMUL is not working properly. Here's an example.
SUBROUTINE mymult(x,y,res,m,n)
IMPLICIT NONE
INTEGER :: m,n
REAL :: x, y, res
DIMENSION :: x(m,n), y(n,m), res(m,m)
res = MATMUL(x,y)
END SUBROUTINE mymult
R CMD SHLIB mat.f95
In R:
dyn.load("mat.so&q...
2015 Jun 26
4
[LLVMdev] Function "llvm::PassManager::run" not defined.
...Reading symbols from opt...done.
(gdb) break llvm::PassManager::run
Function "llvm::PassManager::run" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (llvm::PassManager::run) pending.
(gdb) run /home/manideepa/Desktop/research/compiler/testing/matmul.bc -load
../lib/loop_graph_analysis.so -loop-graph-analysis
Starting program:
/home/manideepa/Desktop/research/compiler/llvm-3.4/Debug+Asserts/bin/opt
/home/manideepa/Desktop/research/compiler/testing/matmul.bc -load
../lib/loop_graph_analysis.so -loop-graph-analysis
warning: the debug information...
2017 May 18
2
Computing loop trip counts with Scalar evolution
...ith Scalar evolution. I got inspired from
http://stackoverflow.com/questions/13834364/how-to-get-loop-bounds-in-llvm .
However the analysis described there doesn't work well for the second inner loop of
thes function below (although if we declare Bcols a short it works well):
void MatMul(int Arows, int Acols, int Brows, int Bcols) {
short i, j, k;
for (i = 0; i < Arows; ++i) {
for (j = 0; j < Bcols; ++j) {
C[i][j] = 0;
for (k = 0; k < Acols; ++k) {
C[i][j] += A[i][k] * B[j][k];
}...
2011 Jun 08
2
[LLVMdev] Polly test and example
...llation on Ubuntu.
On its building, it returned no errors.
But when I run "make polly-test", it returns 11 unexpected failures as
follows.
-----------------------------------
********************
Testing Time: 19.77s
********************
Failing Tests (11):
Polly :: CodeGen/do_pluto_matmult.ll
Polly :: CodeGen/loop_with_condition.ll
Polly :: CodeGen/loop_with_condition_2.ll
Polly :: CodeGen/loop_with_condition_ineq.ll
Polly :: CodeGen/loop_with_condition_nested.ll
Polly :: CodeGen/reduction_2.ll
Polly :: CodeGen/sequential_loops.ll
Polly :: CodeGen/single_...
2012 Sep 22
2
[LLVMdev] Heads up! New SROA implementation is going on-by-default today!
...got by flipping it on and back off:
http://llvm.org/perf/db_default/v4/nts/3963
Most of this is very, very green. There are three somewhat worrisome
regressions in execution time:
1) sse_expandfft -- when I build this, the binaries have no differences
before and after
2) sse_stepfft -- ditto
3) matmul_f64_4x4 -- this one is interesting
The last one represents the only real regressions I expect to see with the
new pass. There is a helpful indicator about what caused it: the compile
time *improved* by 44%!!! This is because the benchmark was tickling the
bad behavior of the old SROA pass that ins...
2016 Feb 03
4
opt with Polly doesn't find the passes
...y:
>>
>> Scanning dependencies of target check-polly
>> [100%] Running polly regression tests
>> Testing Time: 37.39s
>> Expected Passes : 574
>> Expected Failures : 17
>> [100%] Built target check-polly
>>
>> Now, I like to follow the matmul example in polly. But whatever polly
>> pass I am trying to run opt seem to not find it:
>>
>> opt -load ~/toolchain/install/llvm-3.8/lib/libPolly.so -S
>> -polly-canonicalize matmul.s > matmul.preopt.ll
>>
>> opt: Unknown command line argument '-polly-can...
2011 Jun 09
0
[LLVMdev] Polly test and example
...returned no errors.
> But when I run "make polly-test", it returns 11 unexpected failures as
> follows.
> -----------------------------------
> ********************
> Testing Time: 19.77s
> ********************
> Failing Tests (11):
> Polly :: CodeGen/do_pluto_matmult.ll
> Polly :: CodeGen/loop_with_condition.ll
> Polly :: CodeGen/loop_with_condition_2.ll
> Polly :: CodeGen/loop_with_condition_ineq.ll
> Polly :: CodeGen/loop_with_condition_nested.ll
> Polly :: CodeGen/reduction_2.ll
> Polly :: CodeGen/sequential_l...
2016 Jun 09
2
[Proposal][RFC] Cache aware Loop Cost Analysis
...formation they are considering performing. Specifically, they
> likely need to do this without actually rewriting the IR (speculatively).
>
For Interchange: Loop cost can be used to build a required ordering and
interchange can try to match the nearest possible ordering. Few internal
kernels, matmul are working fine with this approach.
For Fission/Fusion: Loop cost can provide the cost before and after fusion.
Loop cost for a fused loop can be obtained by building reference groups by
assuming a fused loop. Similar case with fission but with partitions.
These require no prior IR changes.
>...
2012 Sep 24
1
[LLVMdev] Heads up! New SROA implementation is going on-by-default today!
...** **
>
> Most of this is very, very green. There are three somewhat worrisome
> regressions in execution time:****
>
> ** **
>
> 1) sse_expandfft -- when I build this, the binaries have no differences
> before and after****
>
> 2) sse_stepfft -- ditto****
>
> 3) matmul_f64_4x4 -- this one is interesting****
>
> ** **
>
> The last one represents the only real regressions I expect to see with the
> new pass. There is a helpful indicator about what caused it: the compile
> time *improved* by 44%!!! This is because the benchmark was tickling the
>...
2011 Jun 24
0
[LLVMdev] LLVM autovectorization support
On 24 June 2011 21:13, Xin Tong Utoronto <x.tong at utoronto.ca> wrote:
> I would like to know the status of the autovectorization support in LLVM.
> does LLVM have a loop dependence analysis, does LLVM have a infrastructure
> for autovectorization ? etc.
Not yet, but it's getting there...
http://polly.grosser.es/
cheers,
--renato