Mageia Bugzilla – Attachment 10819 Details for
Bug 24411
Error: CUDA kernel compilation failed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
modified findvulkan.mk for mageia support
findvulkan.mk (text/x-matlab), 6.17 KB, created by
Giuseppe Ghibò
on 2019-03-02 01:55:29 CET
(
hide
)
Description:
modified findvulkan.mk for mageia support
Filename:
MIME Type:
Creator:
Giuseppe Ghibò
Created:
2019-03-02 01:55:29 CET
Size:
6.17 KB
patch
obsolete
>################################################################################ ># ># Copyright 1993-2018 NVIDIA Corporation. All rights reserved. ># ># NOTICE TO USER: ># ># This source code is subject to NVIDIA ownership rights under U.S. and ># international Copyright laws. ># ># NVIDIA MAKES NO REPRESENTATION ABOUT THE SUITABILITY OF THIS SOURCE ># CODE FOR ANY PURPOSE. IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR ># IMPLIED WARRANTY OF ANY KIND. NVIDIA DISCLAIMS ALL WARRANTIES WITH ># REGARD TO THIS SOURCE CODE, INCLUDING ALL IMPLIED WARRANTIES OF ># MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE. ># IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL, ># OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS ># OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE ># OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE ># OR PERFORMANCE OF THIS SOURCE CODE. ># ># U.S. Government End Users. This source code is a "commercial item" as ># that term is defined at 48 C.F.R. 2.101 (OCT 1995), consisting of ># "commercial computer software" and "commercial computer software ># documentation" as such terms are used in 48 C.F.R. 12.212 (SEPT 1995) ># and is provided to the U.S. Government only as a commercial end item. ># Consistent with 48 C.F.R.12.212 and 48 C.F.R. 227.7202-1 through ># 227.7202-4 (JUNE 1995), all U.S. Government End Users acquire the ># source code with only those rights set forth herein. ># >################################################################################ ># ># findvulkan.mk is used to find the necessary Vulkan Libraries for specific distributions ># this is supported on Linux ># >################################################################################ > ># Determine OS platform and unix distribution >ifeq ("$(TARGET_OS)","linux") > # first search lsb_release > DISTRO = $(shell lsb_release -i -s 2>/dev/null | tr "[:upper:]" "[:lower:]") > ifeq ("$(DISTRO)","") > # second search and parse /etc/issue > DISTRO = $(shell more /etc/issue | awk '{print $$1}' | sed '1!d' | sed -e "/^$$/d" 2>/dev/null | tr "[:upper:]" "[:lower:]") > # ensure data from /etc/issue is valid > ifneq (,$(filter-out $(DISTRO),ubuntu fedora red rhel centos suse)) > DISTRO = > endif > ifeq ("$(DISTRO)","") > # third, we can search in /etc/os-release or /etc/{distro}-release > DISTRO = $(shell awk '/ID/' /etc/*-release | sed 's/ID=//' | grep -v "VERSION" | grep -v "ID" | grep -v "DISTRIB") > endif > endif >endif > >ifeq ("$(TARGET_OS)","linux") > # Each set of Linux Distros have different paths for where to find their GLM/GLFW3 libraries reside > UBUNTU = $(shell echo $(DISTRO) | grep -i ubuntu >/dev/null 2>&1; echo $$?) > FEDORA = $(shell echo $(DISTRO) | grep -i fedora >/dev/null 2>&1; echo $$?) > RHEL = $(shell echo $(DISTRO) | grep -i 'red\|rhel' >/dev/null 2>&1; echo $$?) > CENTOS = $(shell echo $(DISTRO) | grep -i centos >/dev/null 2>&1; echo $$?) > SUSE = $(shell echo $(DISTRO) | grep -i 'suse\|sles' >/dev/null 2>&1; echo $$?) > MAGEIA = $(shell echo $(DISTRO) | grep -i mageia >/dev/null 2>&1; echo $$?) > ifeq ("$(UBUNTU)","0") > ifeq ($(HOST_ARCH)-$(TARGET_ARCH),x86_64-armv7l) > GLPATH := /usr/arm-linux-gnueabihf/lib > GLLINK := -L/usr/arm-linux-gnueabihf/lib > ifneq ($(TARGET_FS),) > GLPATH += $(TARGET_FS)/usr/lib/arm-linux-gnueabihf > GLLINK += -L$(TARGET_FS)/usr/lib/arm-linux-gnueabihf > endif > else ifeq ($(HOST_ARCH)-$(TARGET_ARCH),x86_64-aarch64) > GLPATH := /usr/aarch64-linux-gnu/lib > GLLINK := -L/usr/aarch64-linux-gnu/lib > ifneq ($(TARGET_FS),) > GLPATH += $(TARGET_FS)/usr/lib > GLPATH += $(TARGET_FS)/usr/lib/aarch64-linux-gnu > GLLINK += -L$(TARGET_FS)/usr/lib/aarch64-linux-gnu > endif > else > UBUNTU_PKG_NAME = $(shell which dpkg >/dev/null 2>&1 && dpkg -l 'nvidia-*' | grep '^ii' | awk '{print $$2}' | head -1) > ifneq ("$(UBUNTU_PKG_NAME)","") > GLPATH ?= /usr/lib/$(UBUNTU_PKG_NAME) > GLLINK ?= -L/usr/lib/$(UBUNTU_PKG_NAME) > endif > > DFLT_PATH ?= /usr/lib > endif > endif > ifeq ("$(SUSE)","0") > GLPATH ?= /usr/X11R6/lib64 > GLLINK ?= -L/usr/X11R6/lib64 > DFLT_PATH ?= /usr/lib64 > endif > ifeq ("$(FEDORA)","0") > GLPATH ?= /usr/lib64/nvidia > GLLINK ?= -L/usr/lib64/nvidia > DFLT_PATH ?= /usr/lib64 > endif > ifeq ("$(MAGEIA)","0") > GLPATH ?= /usr/lib64 > GLLINK ?= -L/usr/lib64/nvidia-current > DFLT_PATH ?= /usr/lib64 > endif > ifeq ("$(RHEL)","0") > GLPATH ?= /usr/lib64/nvidia > GLLINK ?= -L/usr/lib64/nvidia > DFLT_PATH ?= /usr/lib64 > endif > ifeq ("$(CENTOS)","0") > GLPATH ?= /usr/lib64/nvidia > GLLINK ?= -L/usr/lib64/nvidia > DFLT_PATH ?= /usr/lib64 > endif > > VULKAN_SDK_PATH ?= /usr > > ifeq ("$(VULKAN_SDK_PATH)","") > $(info >>> WARNING - Vulkan SDK not found, please install Vulkan SDK <<<) > SAMPLE_ENABLED := 0 > endif > > VULKAN_SDK_LIB := $(shell find -L $(VULKAN_SDK_PATH)/lib64 -name libvulkan.so -print 2>/dev/null) > X11LIB := $(shell find -L $(GLPATH) $(DFLT_PATH) -name libX11.so -print 2>/dev/null) > > ifeq ("$(VULKAN_SDK_LIB)","") > $(info >>> WARNING - libvulkan.so not found, please install libvulkan.so <<<) > SAMPLE_ENABLED := 0 > endif > > ifeq ("$(X11LIB)","") > $(info >>> WARNING - libX11.so not found, please install libX11.so <<<) > SAMPLE_ENABLED := 0 > endif > > HEADER_SEARCH_PATH ?= $(TARGET_FS)/usr/include > HEADER_SEARCH_PATH += $(TARGET_FS)/usr/local/include > ifeq ($(HOST_ARCH)-$(TARGET_ARCH)-$(TARGET_OS),x86_64-armv7l-linux) > HEADER_SEARCH_PATH += /usr/arm-linux-gnueabihf/include > else ifeq ($(HOST_ARCH)-$(TARGET_ARCH)-$(TARGET_OS),x86_64-aarch64-linux) > HEADER_SEARCH_PATH += /usr/aarch64-linux-gnu/include > endif > > VULKANHEADER := $(shell find -L $(VULKAN_SDK_PATH)/include -name vulkan.h -print 2>/dev/null) > > ifeq ("$(VULKANHEADER)","") > $(info >>> WARNING - vulkan.h not found, please install vulkan.h <<<) > SAMPLE_ENABLED := 0 > endif >else >endif >
################################################################################ # # Copyright 1993-2018 NVIDIA Corporation. All rights reserved. # # NOTICE TO USER: # # This source code is subject to NVIDIA ownership rights under U.S. and # international Copyright laws. # # NVIDIA MAKES NO REPRESENTATION ABOUT THE SUITABILITY OF THIS SOURCE # CODE FOR ANY PURPOSE. IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR # IMPLIED WARRANTY OF ANY KIND. NVIDIA DISCLAIMS ALL WARRANTIES WITH # REGARD TO THIS SOURCE CODE, INCLUDING ALL IMPLIED WARRANTIES OF # MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE. # IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL, # OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS # OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE # OR PERFORMANCE OF THIS SOURCE CODE. # # U.S. Government End Users. This source code is a "commercial item" as # that term is defined at 48 C.F.R. 2.101 (OCT 1995), consisting of # "commercial computer software" and "commercial computer software # documentation" as such terms are used in 48 C.F.R. 12.212 (SEPT 1995) # and is provided to the U.S. Government only as a commercial end item. # Consistent with 48 C.F.R.12.212 and 48 C.F.R. 227.7202-1 through # 227.7202-4 (JUNE 1995), all U.S. Government End Users acquire the # source code with only those rights set forth herein. # ################################################################################ # # findvulkan.mk is used to find the necessary Vulkan Libraries for specific distributions # this is supported on Linux # ################################################################################ # Determine OS platform and unix distribution ifeq ("$(TARGET_OS)","linux") # first search lsb_release DISTRO = $(shell lsb_release -i -s 2>/dev/null | tr "[:upper:]" "[:lower:]") ifeq ("$(DISTRO)","") # second search and parse /etc/issue DISTRO = $(shell more /etc/issue | awk '{print $$1}' | sed '1!d' | sed -e "/^$$/d" 2>/dev/null | tr "[:upper:]" "[:lower:]") # ensure data from /etc/issue is valid ifneq (,$(filter-out $(DISTRO),ubuntu fedora red rhel centos suse)) DISTRO = endif ifeq ("$(DISTRO)","") # third, we can search in /etc/os-release or /etc/{distro}-release DISTRO = $(shell awk '/ID/' /etc/*-release | sed 's/ID=//' | grep -v "VERSION" | grep -v "ID" | grep -v "DISTRIB") endif endif endif ifeq ("$(TARGET_OS)","linux") # Each set of Linux Distros have different paths for where to find their GLM/GLFW3 libraries reside UBUNTU = $(shell echo $(DISTRO) | grep -i ubuntu >/dev/null 2>&1; echo $$?) FEDORA = $(shell echo $(DISTRO) | grep -i fedora >/dev/null 2>&1; echo $$?) RHEL = $(shell echo $(DISTRO) | grep -i 'red\|rhel' >/dev/null 2>&1; echo $$?) CENTOS = $(shell echo $(DISTRO) | grep -i centos >/dev/null 2>&1; echo $$?) SUSE = $(shell echo $(DISTRO) | grep -i 'suse\|sles' >/dev/null 2>&1; echo $$?) MAGEIA = $(shell echo $(DISTRO) | grep -i mageia >/dev/null 2>&1; echo $$?) ifeq ("$(UBUNTU)","0") ifeq ($(HOST_ARCH)-$(TARGET_ARCH),x86_64-armv7l) GLPATH := /usr/arm-linux-gnueabihf/lib GLLINK := -L/usr/arm-linux-gnueabihf/lib ifneq ($(TARGET_FS),) GLPATH += $(TARGET_FS)/usr/lib/arm-linux-gnueabihf GLLINK += -L$(TARGET_FS)/usr/lib/arm-linux-gnueabihf endif else ifeq ($(HOST_ARCH)-$(TARGET_ARCH),x86_64-aarch64) GLPATH := /usr/aarch64-linux-gnu/lib GLLINK := -L/usr/aarch64-linux-gnu/lib ifneq ($(TARGET_FS),) GLPATH += $(TARGET_FS)/usr/lib GLPATH += $(TARGET_FS)/usr/lib/aarch64-linux-gnu GLLINK += -L$(TARGET_FS)/usr/lib/aarch64-linux-gnu endif else UBUNTU_PKG_NAME = $(shell which dpkg >/dev/null 2>&1 && dpkg -l 'nvidia-*' | grep '^ii' | awk '{print $$2}' | head -1) ifneq ("$(UBUNTU_PKG_NAME)","") GLPATH ?= /usr/lib/$(UBUNTU_PKG_NAME) GLLINK ?= -L/usr/lib/$(UBUNTU_PKG_NAME) endif DFLT_PATH ?= /usr/lib endif endif ifeq ("$(SUSE)","0") GLPATH ?= /usr/X11R6/lib64 GLLINK ?= -L/usr/X11R6/lib64 DFLT_PATH ?= /usr/lib64 endif ifeq ("$(FEDORA)","0") GLPATH ?= /usr/lib64/nvidia GLLINK ?= -L/usr/lib64/nvidia DFLT_PATH ?= /usr/lib64 endif ifeq ("$(MAGEIA)","0") GLPATH ?= /usr/lib64 GLLINK ?= -L/usr/lib64/nvidia-current DFLT_PATH ?= /usr/lib64 endif ifeq ("$(RHEL)","0") GLPATH ?= /usr/lib64/nvidia GLLINK ?= -L/usr/lib64/nvidia DFLT_PATH ?= /usr/lib64 endif ifeq ("$(CENTOS)","0") GLPATH ?= /usr/lib64/nvidia GLLINK ?= -L/usr/lib64/nvidia DFLT_PATH ?= /usr/lib64 endif VULKAN_SDK_PATH ?= /usr ifeq ("$(VULKAN_SDK_PATH)","") $(info >>> WARNING - Vulkan SDK not found, please install Vulkan SDK <<<) SAMPLE_ENABLED := 0 endif VULKAN_SDK_LIB := $(shell find -L $(VULKAN_SDK_PATH)/lib64 -name libvulkan.so -print 2>/dev/null) X11LIB := $(shell find -L $(GLPATH) $(DFLT_PATH) -name libX11.so -print 2>/dev/null) ifeq ("$(VULKAN_SDK_LIB)","") $(info >>> WARNING - libvulkan.so not found, please install libvulkan.so <<<) SAMPLE_ENABLED := 0 endif ifeq ("$(X11LIB)","") $(info >>> WARNING - libX11.so not found, please install libX11.so <<<) SAMPLE_ENABLED := 0 endif HEADER_SEARCH_PATH ?= $(TARGET_FS)/usr/include HEADER_SEARCH_PATH += $(TARGET_FS)/usr/local/include ifeq ($(HOST_ARCH)-$(TARGET_ARCH)-$(TARGET_OS),x86_64-armv7l-linux) HEADER_SEARCH_PATH += /usr/arm-linux-gnueabihf/include else ifeq ($(HOST_ARCH)-$(TARGET_ARCH)-$(TARGET_OS),x86_64-aarch64-linux) HEADER_SEARCH_PATH += /usr/aarch64-linux-gnu/include endif VULKANHEADER := $(shell find -L $(VULKAN_SDK_PATH)/include -name vulkan.h -print 2>/dev/null) ifeq ("$(VULKANHEADER)","") $(info >>> WARNING - vulkan.h not found, please install vulkan.h <<<) SAMPLE_ENABLED := 0 endif else endif
View Attachment As Raw
Actions:
View
Attachments on
bug 24411
:
10794
|
10795
|
10796
|
10801
|
10804
|
10805
|
10806
|
10811
|
10812
|
10813
|
10814
|
10815
|
10817
|
10818
| 10819 |
10822
|
10823
|
10824
|
10825
|
10826
|
10827
|
10828
|
10829
|
10831
|
10832
|
10833
|
10835
|
10837
|
10839
|
10869
|
10870
|
10871
|
10872