[petsc-users] dyld: Symbol not found: _MatCreate_MPIAIJViennaCL

huabel hu.ds.abel at icloud.com
Wed Apr 15 12:04:22 CDT 2020


Hi Satish, that patch is good, thank you!


> On Apr 15, 2020, at 23:58, Satish Balay <balay at mcs.anl.gov> wrote:
> 
>> Configure Options: --configModules=PETSc.Configure --optionsModule=config.compilerOptions --prefix=/Users/fire/opt/petsc313 --with-zlib --with-viennacl=1 --with-viennacl-dir=/Users/fire/opt/viennacl
> 
> I guess you are running viennacl (opencl) on CPU.
> 
> please try the attached patch.
> 
> cd petsc
> patch -Np1 < viennacl.patch
> 
> Or use branch balay/viennacl-cpu-check/maint in petsc repo
> 
> Satish
> 
> On Wed, 15 Apr 2020, huabel via petsc-users wrote:
> 
>> Dear Users,
>> 
>> I’m try to use petsc3.13 with ViennaCL , when I try to run src/vec/vec/tutorials/ex1.c, I get next error,  thanks.
>> 
>> dyld: Symbol not found: _MatCreate_MPIAIJViennaCL
>>  Referenced from: /Users/fire/opt/petsc313/lib/libpetsc.3.13.dylib
>>  Expected in: flat namespace
>> in /Users/fire/opt/petsc313/lib/libpetsc.3.13.dylib
>> [1]    22602 abort      ./ex1
>> 
>> ➜  tutorials git:(master) ✗ ./ex1 -vec_type viennacl -mat_type aijviennacl
>> dyld: Symbol not found: _MatCreate_MPIAIJViennaCL
>>  Referenced from: /Users/fire/opt/petsc313/lib/libpetsc.3.13.dylib
>>  Expected in: flat namespace
>> in /Users/fire/opt/petsc313/lib/libpetsc.3.13.dylib
>> [1]    23268 abort      ./ex1 -vec_type viennacl -mat_type aijviennacl
>> 
>> 
>> 
>> Thanks
>>                 Abel Hu
>> 
> <viennacl.patch>



More information about the petsc-users mailing list