|
| 1 | +# Copyright 2025 NVIDIA Corporation. All rights reserved. |
| 2 | +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE |
| 3 | + |
| 4 | +# Forked from: |
| 5 | +# https://github.com/NVIDIA/numba-cuda/blob/8c9c9d0cb901c06774a9abea6d12b6a4b0287e5e/numba_cuda/numba/cuda/cuda_paths.py |
| 6 | + |
| 7 | +# The numba-cuda version in turn was forked from: |
| 8 | +# https://github.com/numba/numba/blob/6c8a71ffc3eaa1c68e1bac927b80ee7469002b3f/numba/cuda/cuda_paths.py |
| 9 | +# SPDX-License-Identifier: BSD-2-Clause |
| 10 | +# |
| 11 | +# Original Numba LICENSE: |
| 12 | +# Copyright (c) 2012, Anaconda, Inc. |
| 13 | +# All rights reserved. |
| 14 | +# |
| 15 | +# Redistribution and use in source and binary forms, with or without |
| 16 | +# modification, are permitted provided that the following conditions are |
| 17 | +# met: |
| 18 | +# |
| 19 | +# Redistributions of source code must retain the above copyright notice, |
| 20 | +# this list of conditions and the following disclaimer. |
| 21 | +# |
| 22 | +# Redistributions in binary form must reproduce the above copyright |
| 23 | +# notice, this list of conditions and the following disclaimer in the |
| 24 | +# documentation and/or other materials provided with the distribution. |
| 25 | +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 26 | +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 27 | +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 28 | +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 29 | +# HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 30 | +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 31 | +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 32 | +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 33 | +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 34 | +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 35 | +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 36 | + |
1 | 37 | import ctypes
|
2 | 38 | import os
|
3 | 39 | import platform
|
|
0 commit comments