New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
specified alignment (8) is different from alignment (2) specified on a previous declaration #2692
Comments
CUDA 8.0 and 9.0 are based on different EDG frontend sources. The 9.0 frontend code has newer paths that check for this alignment incompatibility. |
Thanks, removing align solved that problem. Afterwards however, I got the the following error. This warning is for project developers. Use -Wno-dev to suppress it. -- Generating done
-- Build files have been written to: /Users/zafer/deeplearning/buildenv/pytorch/torch/lib/build/ATen |
Same problem was reported in #2682, I don't think it is solved yet. |
the alignment error is fixed now. we'll fix this scalar error soon as well, we;re tracking it in #2682 |
the second error should be fixed now as well |
Thanks, it compiled fine without any errors after the update. |
killed Cmake Error at ATen_generated_THCTensorMode.cu.o |
macOS 10.12.6
CUDA 9.0rc
CUDNN 7.0 for CUDA 9.0rc
Python 3.6 (anaconda)
Xcode 8.3.3
Apple LLVM version 8.1.0 (clang-802.0.42)
MACOSX_DEPLOYMENT_TARGET=10.9 CC=clang CXX=clang++ python setup.py install failed
CMake Warning:
Manually-specified variables were not used by the project:
-- Build files have been written to: /Users/zafer/deeplearning/buildenv/pytorch/torch/lib/build/THC
[ 7%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCSleep.cu.o
[ 7%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCBlas.cu.o
[ 7%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCStorage.cu.o
[ 8%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCStorageCopy.cu.o
[ 8%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCReduceApplyUtils.cu.o
[ 9%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCTensor.cu.o
[ 9%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCHalf.cu.o
[ 9%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCTensorCopy.cu.o
[ 10%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCTensorMath.cu.o
[ 12%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCTensorMath2.cu.o
[ 13%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCTensorMathBlas.cu.o
[ 14%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCTensorMathMagma.cu.o
[ 15%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCTensorMathPairwise.cu.o
[ 17%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCTensorMathReduce.cu.o
[ 18%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCTensorMathScan.cu.o
[ 19%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCTensorIndex.cu.o
[ 20%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCTensorConv.cu.o
[ 21%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCTensorRandom.cu.o
[ 23%] Building NVCC (Device) object CMakeFiles/THC.dir/THC_generated_THCTensorScatterGather.cu.o
/Users/zafer/deeplearning/buildenv/pytorch/torch/lib/THC/THCTensorRandom.cuh(156): error: specified alignment (4) is different from alignment (2) specified on a previous declaration
detected during instantiation of "void sampleMultinomialOnce<T,AccT>(long *, long, int, T *, T *) [with T=half, AccT=float]"
/Users/zafer/deeplearning/buildenv/pytorch/torch/lib/THC/generic/THCTensorRandom.cu(191): here
/Users/zafer/deeplearning/buildenv/pytorch/torch/lib/THC/THCTensorRandom.cuh(95): error: specified alignment (4) is different from alignment (2) specified on a previous declaration
detected during instantiation of "void renormRowsL1(T *, long, long) [with T=float]"
/Users/zafer/deeplearning/buildenv/pytorch/torch/lib/THC/generic/THCTensorRandom.cu(120): here
/Users/zafer/deeplearning/buildenv/pytorch/torch/lib/THC/THCTensorRandom.cuh(156): error: specified alignment (4) is different from alignment (2) specified on a previous declaration
detected during instantiation of "void sampleMultinomialOnce<T,AccT>(long *, long, int, T *, T *) [with T=float, AccT=float]"
/Users/zafer/deeplearning/buildenv/pytorch/torch/lib/THC/generic/THCTensorRandom.cu(191): here
/Users/zafer/deeplearning/buildenv/pytorch/torch/lib/THC/THCTensorRandom.cuh(95): error: specified alignment (8) is different from alignment (2) specified on a previous declaration
detected during instantiation of "void renormRowsL1(T *, long, long) [with T=double]"
/Users/zafer/deeplearning/buildenv/pytorch/torch/lib/THC/generic/THCTensorRandom.cu(120): here
/Users/zafer/deeplearning/buildenv/pytorch/torch/lib/THC/THCTensorRandom.cuh(156): error: specified alignment (8) is different from alignment (2) specified on a previous declaration
detected during instantiation of "void sampleMultinomialOnce<T,AccT>(long *, long, int, T *, T *) [with T=double, AccT=double]"
/Users/zafer/deeplearning/buildenv/pytorch/torch/lib/THC/generic/THCTensorRandom.cu(191): here
5 errors detected in the compilation of "/var/folders/67/xg4tb7ps26jgsnv19_cjdnq80000gn/T//tmpxft_00001041_00000000-11_THCTensorRandom.compute_61.cpp1.ii".
CMake Error at THC_generated_THCTensorRandom.cu.o.cmake:267 (message):
Error generating file
/Users/zafer/deeplearning/buildenv/pytorch/torch/lib/build/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorRandom.cu.o
make[2]: *** [CMakeFiles/THC.dir/THC_generated_THCTensorRandom.cu.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/THC.dir/all] Error 2
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered: