<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Can you keep <a class="moz-txt-link-abbreviated" href="mailto:petsc-dev@mcs.anl.gov">petsc-dev@mcs.anl.gov</a> cc'd
please.<br>
<br>
On 07/29/2014 03:33 PM, Lucas Ogura wrote:<br>
</div>
<blockquote cite="mid:BAY174-W17BF993B162BE935D7E35AC7F80@phx.gbl"
type="cite">
<div dir="ltr">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr">
<div>I don't have permission to send all the code, but
executing step-by-step I was able to isolate the part that
give the error and I'm sending it. <span style="font-size:
12pt;">The complete code its an iterative process that
operates over a CSR matrix.</span>
<div>Running some more tests I realize that I'm not sure if
my runtime options are right:</div>
<div>1- I'm passing "-vec_type viennacl -mat_type
aijviennacl". Is that correct?</div>
<div>2- Shoud I add extra functions in the code besides the
MatSetFromOptions and VecSetFromOptions after the MatCreat
and VecCreate?</div>
</div>
</div>
</div>
</blockquote>
<br>
A minimal example that demonstrates the bug is fine (in fact it's
easier for us than just sending the whole application). However,
could you send a code sample that can be compiled, please. The one
you sent is missing includes, variable declarations, and setup.<br>
<br>
Your command line options sound reasonable but it's not possible to
say for sure without working code.<br>
<br>
Thanks,<br>
Dominic<br>
<blockquote cite="mid:BAY174-W17BF993B162BE935D7E35AC7F80@phx.gbl"
type="cite">
<div dir="ltr">
<div dir="ltr">
<div>
<div><br>
</div>
<div><br>
</div>
<div><br>
<div>
<hr id="stopSpelling">Date: Tue, 29 Jul 2014 11:09:10
-0600<br>
From: <a class="moz-txt-link-abbreviated" href="mailto:dmeiser@txcorp.com">dmeiser@txcorp.com</a><br>
To: <a class="moz-txt-link-abbreviated" href="mailto:lucasjdogura@hotmail.com">lucasjdogura@hotmail.com</a>; <a class="moz-txt-link-abbreviated" href="mailto:petsc-dev@mcs.anl.gov">petsc-dev@mcs.anl.gov</a><br>
Subject: Re: [petsc-dev] SEGV using PETSc-GPU ViennaCL<br>
<br>
<div class="ecxmoz-cite-prefix">Can you send example
code that reproduces this problem?<br>
<br>
<br>
On 07/29/2014 10:54 AM, Lucas Ogura wrote:<br>
</div>
<blockquote
cite="mid:BAY174-W2683ACD1ED4C6277C48134C7F80@phx.gbl">
<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style>
<div dir="ltr">I am trying to use PETSc-dev for a
while in a project at my university. I need to use
the GPU for matrix-vector operations and the code
that I'm working was already implemented using
PETSc, obviously I choose the PETSc ViennaCL-GPU
solution. The original code works perfectly, but
when I use the GPU parameters, a SEGV occurs in some
test cases.
<div>Valgrind says that is a problem with
PetscMallocAlign at memalign but, some times, it
says that the problem is MatGetDiagonal.
<div>I'm sending the configure.log because I don't
know what are the cause of the problem (hope the
problem is the configuration), and I would like
to know if some similar problem were reported by
PETSc-ViennaCL users and PETSc-CUDA users too.</div>
<div><br>
</div>
<div>PS: My computer has a top AMD GPU and I'm not
sure that I can find a NVIDIA GPU computer to
test my code, so OpenCL solutions are better to
me then CUDA.</div>
</div>
</div>
</blockquote>
<br>
<br>
<pre class="ecxmoz-signature">--
Dominic Meiser
Tech-X Corporation
5621 Arapahoe Avenue
Boulder, CO 80303
USA
Telephone: 303-996-2036
Fax: 303-448-7756
<a moz-do-not-send="true" class="ecxmoz-txt-link-abbreviated" href="http://www.txcorp.com" target="_blank">www.txcorp.com</a></pre>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Dominic Meiser
Tech-X Corporation
5621 Arapahoe Avenue
Boulder, CO 80303
USA
Telephone: 303-996-2036
Fax: 303-448-7756
<a class="moz-txt-link-abbreviated" href="http://www.txcorp.com">www.txcorp.com</a></pre>
</body>
</html>