From 75d7133a5dd2d0743c125f51c0fe2f9bbd0dbb45 Mon Sep 17 00:00:00 2001 From: Shehzan Mohammed Date: Tue, 13 Sep 2016 16:32:16 -0400 Subject: [PATCH 1/4] Force update CUDA_LIBDEVICE_DIR when CUDA directories are updated --- src/backend/cuda/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/cuda/CMakeLists.txt b/src/backend/cuda/CMakeLists.txt index 8b890741ec..a3a63958e7 100644 --- a/src/backend/cuda/CMakeLists.txt +++ b/src/backend/cuda/CMakeLists.txt @@ -7,7 +7,7 @@ INCLUDE(CLKernelToH) INCLUDE(FindNVVM) OPTION(USE_LIBDEVICE "Use libdevice for CUDA JIT" ON) -SET(CUDA_LIBDEVICE_DIR "${CUDA_NVVM_HOME}/libdevice" CACHE PATH "Path where libdevice compute files are located") +SET(CUDA_LIBDEVICE_DIR "${CUDA_NVVM_HOME}/libdevice" CACHE PATH "Path where libdevice compute files are located" FORCE) MARK_AS_ADVANCED( CUDA_BUILD_CUBIN From 11b7bd3a44c07b06670f9415cfd05604cb957619 Mon Sep 17 00:00:00 2001 From: Shehzan Mohammed Date: Thu, 15 Sep 2016 10:57:58 -0400 Subject: [PATCH 2/4] BUGFIX: AARCH64 (TX1 64-bit OS) does not define __arm__ - Requires __aarch64__ --- src/backend/cuda/platform.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/cuda/platform.cpp b/src/backend/cuda/platform.cpp index 9578bce4d0..8a13993a12 100644 --- a/src/backend/cuda/platform.cpp +++ b/src/backend/cuda/platform.cpp @@ -242,7 +242,7 @@ string getDriverVersion() int x = nvDriverVersion(driverVersion, sizeof(driverVersion)); if (x != 1) { // Windows, OSX, Tegra Need a new way to fetch driver - #if !defined(OS_WIN) && !defined(OS_MAC) && !defined(__arm__) + #if !defined(OS_WIN) && !defined(OS_MAC) && !defined(__arm__) && !defined(__aarch64__) throw runtime_error("Invalid driver"); #endif int driver = 0; From 333a31ad03ebfbd7a67e0e439542f5d09c148f56 Mon Sep 17 00:00:00 2001 From: Shehzan Mohammed Date: Thu, 15 Sep 2016 11:45:56 -0400 Subject: [PATCH 3/4] DOCS: Move INSTALL.md to install.md --- docs/pages/{INSTALL.md => install.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename docs/pages/{INSTALL.md => install.md} (100%) diff --git a/docs/pages/INSTALL.md b/docs/pages/install.md similarity index 100% rename from docs/pages/INSTALL.md rename to docs/pages/install.md From 00a8a038a082483eafee795955cbc468834f810d Mon Sep 17 00:00:00 2001 From: Shehzan Mohammed Date: Thu, 15 Sep 2016 12:02:09 -0400 Subject: [PATCH 4/4] DOCS: Remove unused packages from installation documentation --- docs/pages/install.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/docs/pages/install.md b/docs/pages/install.md index d31affaefe..c22606ecba 100644 --- a/docs/pages/install.md +++ b/docs/pages/install.md @@ -1,4 +1,4 @@ -ArrayFire binary installation instructions {#installing} +ArrayFire Binary Installation Instructions {#installing} ===== Installing ArrayFire couldn't be easier. We ship installers for Windows, @@ -67,7 +67,7 @@ Finally, verify that the path addition worked correctly. You can do this by: First install the prerequisite packages: # Prerequisite packages: - apt-get install libfreeimage-dev libatlas3gf-base libfftw3-dev libglew-dev libglewmx-dev libglfw3-dev cmake + apt-get install libglfw3-dev cmake # Enable GPU support (OpenCL): apt-get install ocl-icd-libopencl1 @@ -86,7 +86,7 @@ file, run the installer. First install the prerequisite packages: # Install prerequiste packages - yum install freeimage atlas fftw libGLEW libGLEWmx glfw cmake + yum install glfw cmake On Centos and Redhat the `glfw` package is outdated and you will need to compile it from source. Please @@ -106,7 +106,7 @@ file, run the installer. First install the prerequisite packages: # Prerequisite packages: - sudo apt-get install libfreeimage-dev libatlas3gf-base libfftw3-dev cmake + sudo apt-get install cmake Ubuntu 14.04 will not have the libglfw3-dev package in its repositories. You can either build the library from source (following the @@ -131,6 +131,13 @@ with any drivers required for your hardware. # Enable GPU support (OpenCL): apt-get install ocl-icd-libopencl1 +### Special instructions for Tegra X1 +**The ArrayFire binary installer for Terga X1 requires JetPack 2.3 or L4T 24.2 +for Jetson TX1. This includes Ubuntu 16.04, CUDA 8.0 etc.** +If you are using ArrayFire on the Tegra X1 also install these packages: + + sudo apt-get install libopenblas-dev liblapacke-dev + ### Special instructions for Tegra K1 If you are using ArrayFire on the Tegra K1 also install these packages: