inducer / inducer/pycuda

Including cuSPARSE raises C linkage errors

Open
#264 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.1k
Forks
298
Avg merge
4m
Merged PRs (30d)
1

Description

I'd like to be able to reference code defined in cuSPARSE in my code, but adding the line `#include ` throws twenty-four iterations of

`/opt/ssoft/apps/linux-centos7-sandybridge/gcc-4.9.4/cuda-10.1.243-prcsthu5do5pks2wkmliqdviisr6hw5m/bin/../targets/x86_64-linux/include/cuda_fp16.hpp(230): error: more than one instance of overloaded function "operator++" has "C" linkage`

with different operators. (Oddly, the exact same code compiled just fine a month ago, so I suspect that my environment has changed in some way that I haven't noticed; but I have no idea how to begin hunting down the error.)

I can work around the above by turning on `no_extern_c`, but then I have no idea what the mangled name of my function is.

Any advice would be appreciated.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.