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

Karl Rupp me at karlrupp.net
Wed Apr 15 21:43:11 CDT 2020


Hi,

yes, Satish is right, this build is a CPU-build. Add `--with-opencl=1` :-)

Best regards,
Karli

On 4/16/20 12:31 AM, Satish Balay wrote:
>  From prior e-mail - you wanted to use AMD GPU on OSX. This build below is CPU build - not for GPU. [Karl can confirm]
> 
> I think OSX has OpenCL installed by default [perhaps via xcode?] - so you might just need the additional configure option: --with-opencl=1
> 
> Satish
> 
> On Thu, 16 Apr 2020, huabel via petsc-users wrote:
> 
>> 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