Closed razor1179 closed 8 years ago
The issue here is that you are trying to install to /usr/local, but you don't have permission (presumably /usr/local is owned by root on your system). You can resolve this in multiple ways:
You can specify the install_path yourself.
scons install_path=/my/installation/path
You can try one of the existing environment files that should point the installation target at a local directory './build_local'.
source osx.sh
scons install=true
You can change the permissions of /usr/local/ or install the library as root (NOT RECOMMENDED).
sudo scons install=true
I'll update the documentation with these options.
Thank you Greg.
Regards, Deepak
On Thursday, July 14, 2016, Greg Diamos notifications@github.com wrote:
The issue here is that you are trying to install to /usr/local, but you don't have permission (presumably /usr/local is owned by root on your system). You can resolve this in multiple ways:
You can specify the install_path yourself.
scons install_path=/my/installation/path
You can try one of the existing environment files that should point the installation target at a local directory './build_local'.
source osx.sh scons install=true
You can change the permissions of /usr/local/ or install the library as root (NOT RECOMMENDED).
sudo scons install=true
I'll update the documentation with these options.
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/baidu-research/persistent-rnn/issues/9#issuecomment-232856373, or mute the thread https://github.com/notifications/unsubscribe-auth/AS_rDB58H0vNE27YgxnTgC7LvIgDTYnmks5qVwovgaJpZM4JL542 .
Deepak Vinayak Kadetotad Ph.D. Student School of Electrical, Computer and Energy Engineering Arizona State University Office: ISTB 541 email: deepak.kadetotad@asu.edu
I followed the suggestion of removing line 789 from src/detail/rnn/recurrent_ops.cu which solved the scratchDimension error but I ran into another error after
sarunac4@TitanX01:~/baidu/persistent-rnn$ scons mode=release install=true scons: Reading SConscript files ... Building NVCC tool Installing Persistent RNN Kernels scons: done reading SConscript files. scons: Building targets ... nvcc -o .release_build/benchmark/benchmark-atomic-throughput.o -c -Xcompiler -O3 -Xcompiler -Wall -Xcompiler -Werror -I /usr/local/cuda/include -I .release_build/include -I include -gencode=arch=compute_30,code=sm_30 -std=c++11 "-D CUDA_ARCH_MAJOR=3" -Xcompiler=-Wno-unused-function -Xcompiler=-Wno-unused-private-field benchmark/benchmark-atomic-throughput.cu g++ -o .release_build/src/persistent_rnn.os -c -O3 -Wall -Werror -std=c++11 -fPIC -I/usr/local/cuda/include -I.release_build/include -Iinclude src/persistent_rnn.cpp g++ -o .release_build/src/persistent_rnn_high_level.os -c -O3 -Wall -Werror -std=c++11 -fPIC -I/usr/local/cuda/include -I.release_build/include -Iinclude src/persistent_rnn_high_level.cpp g++ -o .release_build/src/detail/matrix/allocation.os -c -O3 -Wall -Werror -std=c++11 -fPIC -I/usr/local/cuda/include -I.release_build/include -Iinclude src/detail/matrix/allocation.cpp g++ -o .release_build/src/detail/matrix/atlas_library.os -c -O3 -Wall -Werror -std=c++11 -fPIC -I/usr/local/cuda/include -I.release_build/include -Iinclude src/detail/matrix/atlas_library.cpp g++ -o .release_build/src/detail/matrix/blas_operations.os -c -O3 -Wall -Werror -std=c++11 -fPIC -I/usr/local/cuda/include -I.release_build/include -Iinclude src/detail/matrix/blas_operations.cpp g++ -o .release_build/src/detail/matrix/cublas_library.os -c -O3 -Wall -Werror -std=c++11 -fPIC -I/usr/local/cuda/include -I.release_build/include -Iinclude src/detail/matrix/cublas_library.cpp g++ -o .release_build/src/detail/matrix/curand_library.os -c -O3 -Wall -Werror -std=c++11 -fPIC -I/usr/local/cuda/include -I.release_build/include -Iinclude src/detail/matrix/curand_library.cpp g++ -o .release_build/src/detail/matrix/float_iterator.os -c -O3 -Wall -Werror -std=c++11 -fPIC -I/usr/local/cuda/include -I.release_build/include -Iinclude src/detail/matrix/float_iterator.cpp g++ -o .release_build/src/detail/matrix/float_reference.os -c -O3 -Wall -Werror -std=c++11 -fPIC -I/usr/local/cuda/include -I.release_build/include -Iinclude src/detail/matrix/float_reference.cpp g++ -o .release_build/src/detail/matrix/matrix.os -c -O3 -Wall -Werror -std=c++11 -fPIC -I/usr/local/cuda/include -I.release_build/include -Iinclude src/detail/matrix/matrix.cpp g++ -o .release_build/src/detail/matrix/matrix_transformations.os -c -O3 -Wall -Werror -std=c++11 -fPIC -I/usr/local/cuda/include -I.release_build/include -Iinclude src/detail/matrix/matrix_transformations.cpp g++ -o .release_build/src/detail/matrix/operation.os -c -O3 -Wall -Werror -std=c++11 -fPIC -I/usr/local/cuda/include -I.release_build/include -Iinclude src/detail/matrix/operation.cpp g++ -o .release_build/src/detail/matrix/precision.os -c -O3 -Wall -Werror -std=c++11 -fPIC -I/usr/local/cuda/include -I.release_build/include -Iinclude src/detail/matrix/precision.cpp g++ -o .release_build/src/detail/matrix/random_operations.os -c -O3 -Wall -Werror -std=c++11 -fPIC -I/usr/local/cuda/include -I.release_build/include -Iinclude src/detail/matrix/random_operations.cpp g++ -o .release_build/src/detail/parallel/cuda.os -c -O3 -Wall -Werror -std=c++11 -fPIC -I/usr/local/cuda/include -I.release_build/include -Iinclude src/detail/parallel/cuda.cpp g++ -o .release_build/src/detail/parallel/cuda_driver.os -c -O3 -Wall -Werror -std=c++11 -fPIC -I/usr/local/cuda/include -I.release_build/include -Iinclude src/detail/parallel/cuda_driver.cpp g++ -o .release_build/src/detail/parallel/cuda_runtime_library.os -c -O3 -Wall -Werror -std=c++11 -fPIC -I/usr/local/cuda/include -I.release_build/include -Iinclude src/detail/parallel/cuda_runtime_library.cpp g++ -o .release_build/src/detail/parallel/memory.os -c -O3 -Wall -Werror -std=c++11 -fPIC -I/usr/local/cuda/include -I.release_build/include -Iinclude src/detail/parallel/memory.cpp g++ -o .release_build/src/detail/parallel/parallel_for.os -c -O3 -Wall -Werror -std=c++11 -fPIC -I/usr/local/cuda/include -I.release_build/include -Iinclude src/detail/parallel/parallel_for.cpp g++ -o .release_build/src/detail/parallel/synchronization.os -c -O3 -Wall -Werror -std=c++11 -fPIC -I/usr/local/cuda/include -I.release_build/include -Iinclude src/detail/parallel/synchronization.cpp g++ -o .release_build/src/detail/util/knob_file.os -c -O3 -Wall -Werror -std=c++11 -fPIC -I/usr/local/cuda/include -I.release_build/include -Iinclude src/detail/util/knob_file.cpp g++ -o .release_build/src/detail/util/knobs.os -c -O3 -Wall -Werror -std=c++11 -fPIC -I/usr/local/cuda/include -I.release_build/include -Iinclude src/detail/util/knobs.cpp g++ -o .release_build/src/detail/util/logger.os -c -O3 -Wall -Werror -std=c++11 -fPIC -I/usr/local/cuda/include -I.release_build/include -Iinclude src/detail/util/logger.cpp g++ -o .release_build/src/detail/util/system_compatibility.os -c -O3 -Wall -Werror -std=c++11 -fPIC -I/usr/local/cuda/include -I.release_build/include -Iinclude src/detail/util/system_compatibility.cpp g++ -o .release_build/src/detail/rnn/recurrent_ops_handle.os -c -O3 -Wall -Werror -std=c++11 -fPIC -I/usr/local/cuda/include -I.release_build/include -Iinclude src/detail/rnn/recurrent_ops_handle.cpp nvcc -o .release_build/src/detail/matrix/copy_operations.os -c -shared -Xcompiler -O3 -Xcompiler -Wall -Xcompiler -Werror -Xcompiler -fPIC -I /usr/local/cuda/include -I .release_build/include -I include -gencode=arch=compute_30,code=sm_30 -std=c++11 "-D CUDA_ARCH_MAJOR=3" -Xcompiler=-Wno-unused-function -Xcompiler=-Wno-unused-private-field src/detail/matrix/copy_operations.cu nvcc -o .release_build/src/detail/matrix/matrix_operations.os -c -shared -Xcompiler -O3 -Xcompiler -Wall -Xcompiler -Werror -Xcompiler -fPIC -I /usr/local/cuda/include -I .release_build/include -I include -gencode=arch=compute_30,code=sm_30 -std=c++11 "-D CUDA_ARCH_MAJOR=3" -Xcompiler=-Wno-unused-function -Xcompiler=-Wno-unused-private-field src/detail/matrix/matrix_operations.cu nvcc -o .release_build/src/detail/rnn/recurrent_ops.os -c -shared -Xcompiler -O3 -Xcompiler -Wall -Xcompiler -Werror -Xcompiler -fPIC -I /usr/local/cuda/include -I .release_build/include -I include -gencode=arch=compute_30,code=sm_30 -std=c++11 "-D CUDA_ARCH_MAJOR=3" -Xcompiler=-Wno-unused-function -Xcompiler=-Wno-unused-private-field src/detail/rnn/recurrent_ops.cu g++ -o .release_build/libprnn.so -shared -Wl,-rpath=/usr/local/cuda/lib64 .release_build/src/persistent_rnn.os .release_build/src/persistent_rnn_high_level.os .release_build/src/detail/matrix/allocation.os .release_build/src/detail/matrix/atlas_library.os .release_build/src/detail/matrix/blas_operations.os .release_build/src/detail/matrix/cublas_library.os .release_build/src/detail/matrix/curand_library.os .release_build/src/detail/matrix/float_iterator.os .release_build/src/detail/matrix/float_reference.os .release_build/src/detail/matrix/matrix.os .release_build/src/detail/matrix/matrix_transformations.os .release_build/src/detail/matrix/operation.os .release_build/src/detail/matrix/precision.os .release_build/src/detail/matrix/random_operations.os .release_build/src/detail/parallel/cuda.os .release_build/src/detail/parallel/cuda_driver.os .release_build/src/detail/parallel/cuda_runtime_library.os .release_build/src/detail/parallel/memory.os .release_build/src/detail/parallel/parallel_for.os .release_build/src/detail/parallel/synchronization.os .release_build/src/detail/util/knob_file.os .release_build/src/detail/util/knobs.os .release_build/src/detail/util/logger.os .release_build/src/detail/util/system_compatibility.os .release_build/src/detail/rnn/recurrent_ops_handle.os .release_build/src/detail/matrix/copy_operations.os .release_build/src/detail/matrix/matrix_operations.os .release_build/src/detail/rnn/recurrent_ops.os -L/usr/local/cuda/lib64 -L/usr/local/lib -lcudart_static -lrt -ldl Install file: ".release_build/libprnn.so" as "/usr/local/lib/libprnn.so" scons: *** [/usr/local/lib/libprnn.so] /usr/local/lib/libprnn.so: Permission denied scons: building terminated because of errors.
The system is running on OS: Ubuntu 14.04 CPU: Intel(R) Xeon(R) CPU E5-1607 GPU: GeForce GTX TITAN X