I try to run example02_pipelineAndRayGen,there was a Segment error (core dumped) error in optixDeviceContextCreate,SampleRenderer.cpp.
graphics card:GeForce RTX 3090
If that is the example from here https://github.com/ingowald/optix7course
please raise that as an issue inside the github repository to inform Ingo Wald there.
These are his personal examples and need to be fixed by him.
The README.md in there says that the examples have been made compatible with OptiX 7.3.
Do other examples from that repository work on your system?
Are you at top-of-tree of these sources?