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

LLVM generates max.NaN which only works on sm_80 #2148

Closed
maleadt opened this issue Nov 3, 2023 · 1 comment · Fixed by #2154
Closed

LLVM generates max.NaN which only works on sm_80 #2148

maleadt opened this issue Nov 3, 2023 · 1 comment · Fixed by #2154
Labels
bug Something isn't working

Comments

@maleadt
Copy link
Member

maleadt commented Nov 3, 2023

Error in testset core/device/intrinsics/math:
Error During Test at /home/tim/Julia/pkg/CUDA/test/core/device/intrinsics/math.jl:157
  Test threw exception
  Expression: isequal(maximum(cu([NaN])), NaN)
  Failed to compile PTX code (ptxas exited with code 255)
  Invocation arguments: --generate-line-info --verbose --gpu-name sm_72 --output-file /tmp/jl_Ij4FEZ6fAJ.cubin /tmp/jl_8zWhmxsv07.ptx
  ptxas /tmp/jl_8zWhmxsv07.ptx, line 274; error   : Modifier '.NaN' requires .target sm_80 or higher

This was on Tegra T194 (Xavier AGX), sm_72. However, I can't reproduce on a GTX 1080 (sm_61), so something more subtle is happening here.

@maleadt maleadt added the bug Something isn't working label Nov 3, 2023
@maleadt maleadt changed the title PTX assembler issue on sm_72 LLVM generates max.NaN which only works on sm_80 Nov 6, 2023
@maleadt
Copy link
Member Author

maleadt commented Nov 6, 2023

I guess this is llvm/llvm-project#64606.

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

Successfully merging a pull request may close this issue.

1 participant