Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HIP Program crash with missing constructor when compiled with HCC #1257

Open
davidrohr opened this issue Sep 2, 2019 · 1 comment
Open

Comments

@davidrohr
Copy link

The program below crashes during hipLaunchKernelGGL instead of giving a failure at compile time, that the constructor for a is defined but not implemented:

#include <hip/hip_runtime.h>

class a
{
public:
    __device__ a();
    int x = 0;
};

__global__ void run_printf()
{
    a aa;
}

int main() {
    hipLaunchKernelGGL(HIP_KERNEL_NAME(run_printf), dim3(1), dim3(1), 0, 0);
    hipDeviceSynchronize();
}

Compiled via: hipcc -o test test.hip.cpp with ROCM 2.6/2.7 and a Radeon7 GPU.

The problem appears only when compiled with HIP_COMPILER=hcc (it works with nvcc and hip-clang), so in ROCm/HIP#1314 we decided to report this as hcc issue.

@PhilipDeegan
Copy link
Contributor

HCC is no longer maintained.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants