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

[BUG]: cuda::discard_memory fails to compile under pre-CTK 11.4 #1082

Closed
1 task done
elstehle opened this issue Nov 10, 2023 · 0 comments
Closed
1 task done

[BUG]: cuda::discard_memory fails to compile under pre-CTK 11.4 #1082

elstehle opened this issue Nov 10, 2023 · 0 comments
Assignees
Labels
bug Something isn't working right.

Comments

@elstehle
Copy link
Collaborator

Is this a duplicate?

Type of Bug

Compile-time Error

Component

libcu++

Describe the bug

When trying to compile cuda::discard_memory under pre-CTK 11.4, I'm getting the following compilation error:

ptxas /tmp/tmpxft_00013a26_00000000-6_catch2_test_vsmem.compute_80.ptx, line 17102; error   : Not a name of any known instruction: 'discard'
ptxas fatal   : Ptx assembly aborted due to errors

The discard instruction was introduced only with PTX 7.4.

How to Reproduce

Call cuda::discard_memory(...) and compile with any CTK 11.3 or earlier.

Expected behavior

The program compiles fine and the PTX instruction to discard is only generated when supported.

Reproduction link

No response

Operating System

No response

nvidia-smi output

No response

NVCC version

nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2020 NVIDIA Corporation
Built on Mon_Oct_12_20:09:46_PDT_2020
Cuda compilation tools, release 11.1, V11.1.105
Build cuda_11.1.TC455_06.29190527_0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working right.
Projects
Archived in project
Development

No branches or pull requests

1 participant