Skip to content

openlibm fenv changes broke CUDA #38427

@maleadt

Description

@maleadt

On latest nightly as well as master + USE_BINARYBUILDER_OPENLIBM=false DEPS_GIT=openlibm:

Thread 1 "julia-debug" received signal SIGSEGV, Segmentation fault.
0x00007ffff7b855d0 in fesetenv () from /home/tim/Julia/julia/build/release/usr/bin/../lib/libopenlibm.so
(gdb) bt
#0  0x00007ffff7b855d0 in fesetenv () from /home/tim/Julia/julia/build/release/usr/bin/../lib/libopenlibm.so
#1  0x00007fff824578ae in ?? () from /usr/lib/libnvidia-ptxjitcompiler.so.1
#2  0x00007fff8244b8fc in __cuda_CallJitEntryPoint () from /usr/lib/libnvidia-ptxjitcompiler.so.1
#3  0x00007fff9196bc30 in ?? () from /usr/lib/libcuda.so.1
#4  0x00007fff91995e23 in ?? () from /usr/lib/libcuda.so.1
#5  0x00007fff91793fd0 in ?? () from /usr/lib/libcuda.so.1
#6  0x00007fff91731853 in ?? () from /usr/lib/libcuda.so.1
#7  0x00007fff917e992e in cuModuleLoadDataEx () from /usr/lib/libcuda.so.1

Reverting JuliaMath/openlibm#213 by using OPENLIBM_SHA1=878948d3dd6bc940f65582b8cae286a06d89ad81 (and changing rounding.jl to look for fesetround and fegetround in libjulia again or bootstrap fails) fixes the issue. Reproduces with CUDA.jl's examples/vadd.jl (requiring https://github.com/JuliaGPU/GPUCompiler.jl/pull/69/files for 1.6 compatibility).

Feel free to transfer this issue to https://github.com/JuliaMath/openlibm; I opened it here because it ultimately manifests as CUDA.jl not working on latest nightly.

Metadata

Metadata

Assignees

Labels

regressionRegression in behavior compared to a previous version

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions