Skip to content
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

/Users/anthonyyuan/torch/install/include/THC/THCNumerics.cuh(596): error: class template "ScalarConvert" has already been defined #408

Open
anthonyyuan opened this issue Jan 5, 2017 · 2 comments

Comments

@anthonyyuan
Copy link

luarocks make rocks/cunn-scm-1.rockspec
Warning: unmatched variable LUALIB
cmake -E make_directory build && cd build && cmake .. -DLUALIB= -DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS} -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/Users/anthonyyuan/torch/install/bin/.." -DCMAKE_INSTALL_PREFIX="/Users/anthonyyuan/torch/install/lib/luarocks/rocks/cunn/scm-1" && make -j$(getconf _NPROCESSORS_ONLN) install

-- Found Torch7 in /Users/anthonyyuan/torch/install
-- TH_LIBRARIES: TH
-- THC_LIBRARIES: THC
-- Autodetected CUDA architecture(s): 3.0
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/anthonyyuan/desktop/src/cunn/build
[ 1%] Building NVCC (Device) object lib/THCUNN/CMakeFiles/THCUNN.dir/THCUNN_generated_Abs.cu.o
[ 3%] Building NVCC (Device) object lib/THCUNN/CMakeFiles/THCUNN.dir/THCUNN_generated_VolumetricReplicationPadding.cu.o
[ 6%] Building NVCC (Device) object lib/THCUNN/CMakeFiles/THCUNN.dir/THCUNN_generated_AbsCriterion.cu.o
[ 6%] Building NVCC (Device) object lib/THCUNN/CMakeFiles/THCUNN.dir/THCUNN_generated_BatchNormalization.cu.o
[ 8%] Building NVCC (Device) object lib/THCUNN/CMakeFiles/THCUNN.dir/THCUNN_generated_BCECriterion.cu.o
[ 10%] Building NVCC (Device) object lib/THCUNN/CMakeFiles/THCUNN.dir/THCUNN_generated_ClassNLLCriterion.cu.o
[ 12%] Building NVCC (Device) object lib/THCUNN/CMakeFiles/THCUNN.dir/THCUNN_generated_DistKLDivCriterion.cu.o
[ 13%] Building NVCC (Device) object lib/THCUNN/CMakeFiles/THCUNN.dir/THCUNN_generated_ELU.cu.o
/Users/anthonyyuan/torch/install/include/THC/THCNumerics.cuh(596): error: class template "ScalarConvert" has already been defined

/Users/anthonyyuan/torch/install/include/THC/THCNumerics.cuh(602): error: class template "ScalarConvert" has already been defined

/Users/anthonyyuan/torch/install/include/THC/THCNumerics.cuh(613): error: class template "ScalarConvert" has already been defined

/Users/anthonyyuan/torch/install/include/THC/THCNumerics.cuh(624): error: class "ScalarConvert<half, half>" has already been defined

/Users/anthonyyuan/torch/install/include/THC/THCNumerics.cuh(596): error: class template "ScalarConvert" has already been defined

/Users/anthonyyuan/torch/install/include/THC/THCNumerics.cuh(602): error: class template "ScalarConvert" has already been defined

/Users/anthonyyuan/torch/install/include/THC/THCNumerics.cuh(613): error: class template "ScalarConvert" has already been defined

/Users/anthonyyuan/torch/install/include/THC/THCNumerics.cuh(624): error: class "ScalarConvert<half, half>" has already been defined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/Abs.cu(23): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/Abs.cu(23): error: identifier "THCudaHalfTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/Abs.cu(23): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/Abs.cu(23): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/Abs.cu(23): error: identifier "THCudaTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/Abs.cu(23): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/torch/install/include/THC/THCNumerics.cuh(596): error: class template "ScalarConvert" has already been defined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/Abs.cu(23): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/Abs.cu(23): error: identifier "THCudaDoubleTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/Abs.cu(23): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/torch/install/include/THC/THCNumerics.cuh(602): error: class template "ScalarConvert" has already been defined

/Users/anthonyyuan/torch/install/include/THC/THCNumerics.cuh(613): error: class template "ScalarConvert" has already been defined

/Users/anthonyyuan/torch/install/include/THC/THCNumerics.cuh(624): error: class "ScalarConvert<half, half>" has already been defined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/ELU.cu(39): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/ELU.cu(39): error: identifier "THCudaHalfTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/ELU.cu(39): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/ELU.cu(39): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/ELU.cu(39): error: identifier "THCudaTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/ELU.cu(39): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/torch/install/include/THC/THCNumerics.cuh(596): error: class template "ScalarConvert" has already been defined

/Users/anthonyyuan/torch/install/include/THC/THCNumerics.cuh(602): error: class template "ScalarConvert" has already been defined

/Users/anthonyyuan/torch//Uisnesrtsa/laln/tihnocnlyuyduea/nT/HdCe/sTkHtCoNpu/mserrci/ccsu.ncnu/hl(i6b1/3T)H:C UeNrNr/ogre:n ecrliacs/sE LtUe.mcpul(a3t9e) :" Secrarloarr:C oindveenrtti"f ihears "aTlHrCeDaedsyc Bbuefefn" diesf iunnedde
f
i/nUesde
r
s/antho/nUysyeurasn//atnotrhcohn/yiynusatna/ldle/sikntcolpu/dser/cT/HcCu/nTnH/ClNiubm/eTrHiCcUsN.Nc/ughe(n6e2r4i)c:/ EeLrUr.ocru:( 3c9l)a:s se r"rSocra:l airdCeonntviefrite<rh a"lTfH,C uhdaalDfo>u"b lheaTse naslorre_asdiyz ebDeeesnc "d eifsi nuendd
e
fined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/ELU.cu(39): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/torch/install/include/THC/THCNumerics.cuh(596): error: class template "ScalarConvert" has already been defined

/Users/anthonyyuan/torch/install/include/THC/THCNumerics.cuh(602): error: class template "ScalarConvert" has already been defined

/Users/anthonyyuan/torch/install/include/THC/THCNumerics.cuh(613): error: class template "ScalarConvert" has already been defined

/Users/anthonyyuan/torch/install/include/THC/THCNumerics.cuh(624): error: class "ScalarConvert<half, half>" has already been defined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/VolumetricReplicationPadding.cu(16): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/VolumetricReplicationPadding.cu(16): error: identifier "THCudaHalfTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/VolumetricReplicationPadding.cu(102): error: no instance of overloaded function "toDeviceTensor" matches the argument list
argument types are: (THCState *, THCudaHalfTensor *)

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/VolumetricReplicationPadding.cu(102): error: expected an expression

/Users/anthonyyuan/d/eUssketrosp//asnrtch/ocnuynynu/alni/bd/eTsHkCtUoNpN//sgrecn/ecruincn//Vloilbu/mTeHtCrUiNcNR/egpelniecraitci/oCnlPaasdsdNiLnLgC.rciut(e1r0i3o)n:. ceur(r1o3r):: neor rionrs:t aindceen toiff ioevre r"lToHaCdDeeds cfBuunfcft"i oins "utnodDeefviinceedT
e
nsor" m/aUtscehress/ atnhteh oanrygyuumaenn/td elsikstto
p / s r c / c u n n / l iabr/gTuHmCeUnNtN /tgyepneesr iacr/eC:l a(sTsHNCLSLtCartiet e*r,i oTnH.Ccuud(a1H3a)l:f Teernrsoorr: *i)d
e
n/tUisfeiresr/ a"TnHtChuodnayHyaulafnT/ednessokrt_ospi/zserDce/sccu"n ni/sl iubn/dTeHfCiUnNeNd/
g
e/nUesreircs//VaonltuhmoentyryiucaRne/pdleisckattoipo/nsPracd/dciunngn./clui(b1/0T3H)C:U NeNr/rgoern:e reixcp/eCcltaesds NaLnL Cerxiptreersisoino.nc
u
(/1U4s)e:r se/rarnotrh:o niydyeunatni/fdieesrk t"oTpH/CsDrecs/ccBuunfnf/"l iibs/ TuHnCdUeNfNi/ngeedn
e
ric//VUosleurmse/tarnitchRoenpylyiucaant/idoensPkatdodpi/nsgr.cc/uc(u1n0n8/)l:i be/rTrHoCrU:N Nn/og einnesrtiacn/cCel aosfs NoLvLeCrrliotaedreido nf.ucnuc(t1i4o)n: "etrorDoerv:i ciedTeenntsiofri"e rm a"tTcHhCeusd atHhael faTregnusmoern_ts ilziesDte
s c " i s u n d e f ianregdu
m
ent types are: (THCState *, THCudaHalfTensor *)

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/VolumetricReplicatio/nUPsaedrdsi/nagn.tchuo(n1y0y9u)a:n /edrersokrt:o pn/os ricn/sctuannnc/el iobf/ ToHvCeUrNlNo/agdeende rfiucn/cCtliaosns N"LtLoCDreivtiecreiToenn.scour("4 2m)a:t cehrerso rt:h ei daerngtuimfeinetr l"iTsHtC
D e s c B u f f " i s aurngduemfeinnte dt
y
pes a/rUes:e r(sT/HaCnStthaotney yu,a nT/HdCeusdkatHoapl/fsTrecn/scourn n/)l
i
b/THC/UUNsNe/rgse/naenrtihco/nCylyausasnN/LdLeCsrkittoepr/isornc./ccuu(n4n2/)l:i be/rTrHoCrU:N Ni/dgeennteirfiice/rV o"lTuHmCeutdraiHcaRlefpTleincsaotri_osniPzaedDdeisncg". cius( 1u5n5d)e:f ienrerdo
r
: no instance of overloaded function "toDeviceTensor" matches the argument list
argument types are: (THCState *, THCudaHalfTensor *)

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/VolumetricReplicationPadding.cu(155): error: expected an expression

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/VolumetricReplicationPadding.cu(157): error: no instance of overloaded function "toDeviceTensor" matches the argument list
argument types are: (THCState *, THCudaHalfTensor *)

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/VolumetricReplicationPadding.cu(157): error: expected an expression

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/VolumetricReplicationPadding.cu(159): error: no instance of overloaded function "toDeviceTensor" matches the argument list
argument types are: (THCState *, THCudaHalfTensor *)

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/VolumetricReplicationPadding.cu(160): error: no instance of overloaded function "toDeviceTensor" matches the argument list
argument types are: (THCState *, THCudaHalfTensor *)

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/VolumetricReplicationPadding.cu(16): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/VolumetricReplicationPadding.cu(16): error: identifier "THCudaTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/ClassNLLCriterion.cu(13): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/ClassNLLCriterion.cu(13): error: identifier "THCudaTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/ClassNLLCriterion.cu(14): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/ClassNLLCriterion.cu(14): error: identifier "THCudaTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/ClassNLLCriterion.cu(42): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/ClassNLLCriterion.cu(42): error: identifier "THCudaTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/VolumetricReplicationPadding.cu(16): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/VolumetricReplicationPadding.cu(16): error: identifier "THCudaDoubleTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/ClassNLLCriterion.cu(13): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/ClassNLLCriterion.cu(13): error: identifier "THCudaDoubleTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/ClassNLLCriterion.cu(14): error: identifier "THCDescBuff" is undefined

/U/sUesresr/sa/natnhtohnoynyyuyauna/nd/edsekstkotpo/ps/rscr/cc/ucnunn/nl/ilbi/bT/HTCHUCNUNN/Ng/egneenreirci/cC/lVaoslsuNmLeLtCrriictReerpiloinc.actui(o1n4P)a:d deirnrgo.rc:u (i1d0e2n)t:i feirerro r":T HnCou dianDsotuabnlceeT eonfs oorv_esrilzoeaDdeesdc "f uinsc tuinodne f"itnoeDde
v
iceTensor" matches the argument list
argument types are: (THCState *, THCudaDoubleTensor *)

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/VolumetricReplicationPadding.cu(102): error: expected an expression

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/VolumetricReplicationPadding.cu(103): error: no instance of overloaded function "toDeviceTensor" matches the argument list
argument types are: (THCState *, THCudaDoubleTensor *)

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/VolumetricReplicationPadding.cu(103): error: expected an expression

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/VolumetricReplicationPadding.cu(108): error: no instance of overloaded function "toDeviceTensor" matches the argument list
argument types are: (THCState *, THCudaDoubleTensor *)

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/VolumetricReplicationPadding.cu(109): error: no instance of overloaded function "toDeviceTensor" matches the argument list
argument types are: (THCState *, THCudaDoubleTensor *)

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/VolumetricReplicationPadding.cu(155): error: no instance of overloaded function "toDeviceTensor" matches the argument list
argument types are: (THCState *, THCudaDoubleTensor *)

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/VolumetricReplicationPadding.cu(155): error: expected an expression

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/VolumetricReplicationPadding.cu(157): error: no instance of overloaded function "toDeviceTensor" matches the argument list
argument types are: (THCState *, THCudaDoubleTensor *)

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/VolumetricReplicationPadding.cu(157): error: expected an expression

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/VolumetricReplicationPadding.cu(159): error: no instance of overloaded function "toDeviceTensor" matches the argument list
argument types are: (THCState *, THCudaDoubleTensor *)

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/VolumetricReplicationPadding.cu(160): error: no instance of overloaded function "toDeviceTensor" matches the argument list
argument types are: (THCState *, THCudaDoubleTensor *)

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/ClassNLLCriterion.cu(42): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/ClassNLLCriterion.cu(42): error: identifier "THCudaDoubleTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BatchNormalization.cu(74): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BatchNormalization.cu(74): error: identifier "THCudaHalfTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BatchNormalization.cu(74): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BatchNormalization.cu(74): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BatchNormalization.cu(74): error: identifier "THCudaTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BatchNormalization.cu(74): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BatchNormalization.cu(74): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BatchNormalization.cu(74): error: identifier "THCudaDoubleTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BatchNormalization.cu(74): error: identifier "THCDescBuff" is undefined

22 errors detected in the compilation of "/var/folders/nj/zxfjzp2153ld3q1y7tpf3qgh0000gn/T//tmpxft_0000435b_00000000-7_ClassNLLCriterion.cpp1.ii".
/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BatchNormalization.cu(16): error: no instance of overloaded function "toDeviceTensor" matches the argument list
argument types are: (THCState *, THCudaHalfTensor *)
detected during instantiation of "THCDeviceTensor<half, Dim, int, DefaultPtrTraits> devicetensor(THCState *, THCudaHalfTensor *) [with Dim=3]"
(41): here

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BatchNormalization.cu(16): error: no instance of overloaded function "toDeviceTensor" matches the argument list
argument types are: (THCState *, THCudaHalfTensor *)
detected during instantiation of "THCDeviceTensor<half, Dim, int, DefaultPtrTraits> devicetensor(THCState *, THCudaHalfTensor *) [with Dim=1]"
(43): here

34 errors detected in the compilation of "/var/folders/nj/zxfjzp2153ld3q1y7tpf3qgh0000gn/T//tmpxft_00004369_00000000-7_VolumetricReplicationPadding.cpp1.ii".
CMake Error at THCUNN_generated_ClassNLLCriterion.cu.o.cmake:267 (message):
Error generating file
/Users/anthonyyuan/desktop/src/cunn/build/lib/THCUNN/CMakeFiles/THCUNN.dir//./THCUNN_generated_ClassNLLCriterion.cu.o

make[2]: *** [lib/THCUNN/CMakeFiles/THCUNN.dir/THCUNN_generated_ClassNLLCriterion.cu.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMake Error at THCUNN_generated_VolumetricReplicationPadding.cu.o.cmake:267 (message):
Error generating file
/Users/anthonyyuan/desktop/src/cunn/build/lib/THCUNN/CMakeFiles/THCUNN.dir//./THCUNN_generated_VolumetricReplicationPadding.cu.o

make[2]: *** [lib/THCUNN/CMakeFiles/THCUNN.dir/THCUNN_generated_VolumetricReplicationPadding.cu.o] Error 1
/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BatchNormalization.cu(16): error: no instance of overloaded function "toDeviceTensor" matches the argument list
argument types are: (THCState *, THCudaDoubleTensor *)
detected during instantiation of "THCDeviceTensor<double, Dim, int, DefaultPtrTraits> devicetensor(THCState *, THCudaDoubleTensor *) [with Dim=3]"
(41): here

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BatchNormalization.cu(16): error: no instance of overloaded function "toDeviceTensor" matches the argument list
argument types are: (THCState *, THCudaDoubleTensor *)
detected during instantiation of "THCDeviceTensor<double, Dim, int, DefaultPtrTraits> devicetensor(THCState *, THCudaDoubleTensor *) [with Dim=1]"
(43): here

17 errors detected in the compilation of "/var/folders/nj/zxfjzp2153ld3q1y7tpf3qgh0000gn/T//tmpxft_00004359_00000000-7_BatchNormalization.cpp1.ii".
13 errors detected in the compilation of "/var/folders/nj/zxfjzp2153ld3q1y7tpf3qgh0000gn/T//tmpxft_00004364_00000000-7_Abs.cpp1.ii".
CMake Error at THCUNN_generated_BatchNormalization.cu.o.cmake:267 (message):
Error generating file
/Users/anthonyyuan/desktop/src/cunn/build/lib/THCUNN/CMakeFiles/THCUNN.dir//./THCUNN_generated_BatchNormalization.cu.o

make[2]: *** [lib/THCUNN/CMakeFiles/THCUNN.dir/THCUNN_generated_BatchNormalization.cu.o] Error 1
CMake Error at THCUNN_generated_Abs.cu.o.cmake:267 (message):
Error generating file
/Users/anthonyyuan/desktop/src/cunn/build/lib/THCUNN/CMakeFiles/THCUNN.dir//./THCUNN_generated_Abs.cu.o

make[2]: *** [lib/THCUNN/CMakeFiles/THCUNN.dir/THCUNN_generated_Abs.cu.o] Error 1
13 errors detected in the compilation of "/var/folders/nj/zxfjzp2153ld3q1y7tpf3qgh0000gn/T//tmpxft_00004357_00000000-7_ELU.cpp1.ii".
CMake Error at THCUNN_generated_ELU.cu.o.cmake:267 (message):
Error generating file
/Users/anthonyyuan/desktop/src/cunn/build/lib/THCUNN/CMakeFiles/THCUNN.dir//./THCUNN_generated_ELU.cu.o

make[2]: *** [lib/THCUNN/CMakeFiles/THCUNN.dir/THCUNN_generated_ELU.cu.o] Error 1
/Users/anthonyyuan/torch/install/include/THC/THCNumerics.cuh(596): error: class template "ScalarConvert" has already been defined

/Users/anthonyyuan/torch/install/include/THC/THCNumerics.cuh(602): error: class template "ScalarConvert" has already been defined

/Users/anthonyyuan/torch/install/include/THC/THCNumerics.cuh(613): error: class template "ScalarConvert" has already been defined

/Users/anthonyyuan/torch/install/include/THC/THCNumerics.cuh(624): error: class "ScalarConvert<half, half>" has already been defined

/Users/anthonyyuan/torch/install/include/THC/THCNumerics.cuh(596): error: class template "ScalarConvert" has already been defined

/Users/anthonyyuan/torch/install/include/THC/THCNumerics.cuh(602): error: class template "ScalarConvert" has already been defined

/Users/anthonyyuan/torch/install/include/THC/THCNumerics.cuh(613): error: class template "ScalarConvert" has already been defined

/Users/anthonyyuan/torch/install/include/THC/THCNumerics.cuh(624): error: class "ScalarConvert<half, half>" has already been defined

/Users/anthonyyuan/torch/install/include/THC/THCNumerics.cuh(596): error: class template "ScalarConvert" has already been defined

/Users/anthonyyuan/torch/install/include/THC/THCNumerics.cuh(602): error: class template "ScalarConvert" has already been defined

/Users/anthonyyuan/torch/install/include/THC/THCNumerics.cuh(613): error: class template "ScalarConvert" has already been defined

/Users/anthonyyuan/torch/install/include/THC/THCNumerics.cuh(624): error: class "ScalarConvert<half, half>" has already been defined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/DistKLDivCriterion.cu(12): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/DistKLDivCriterion.cu(12): error: identifier "THCudaHalfTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/DistKLDivCriterion.cu(12): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/DistKLDivCriterion.cu(13): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/DistKLDivCriterion.cu(13): error: identifier "THCudaHalfTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/DistKLDivCriterion.cu(46): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/DistKLDivCriterion.cu(46): error: identifier "THCudaHalfTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/DistKLDivCriterion.cu(46): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/DistKLDivCriterion.cu(12): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/DistKLDivCriterion.cu(12): error: identifier "THCudaTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/DistKLDivCriterion.cu(12): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/DistKLDivCriterion.cu(13): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/DistKLDivCriterion.cu(13): error: identifier "THCudaTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/DistKLDivCriterion.cu(46): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/DistKLDivCriterion.cu(46): error: identifier "THCudaTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/DistKLDivCriterion.cu(46): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/DistKLDivCriterion.cu(12): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/DistKLDivCriterion.cu(12): error: identifier "THCudaDoubleTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/DistKLDivCriterion.cu(12): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/DistKLDivCriterion.cu(13): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/DistKLDivCriterion.cu(13): err/oUrs:e risd/eannttihfoineyry u"aTnH/CduedsakDtooupb/lserTce/ncsuonrn_/sliizbe/DTeHsCcU"N Ni/sg eunnedreifci/nBeCdE
C
riterion.cu(13): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BCECriterion.cu(13): error: identifier "THCudaHalfTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BCECriterion.cu(13): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BCECriterion.cu(14): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BCECriterion.cu(14): error: identifier "THCudaHalfTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BCECriterion.cu(14): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BCECriterion.cu(15): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BCECriterion.cu(15): error: identifier "THCudaHalfTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/DistKLDivCriterion.cu(46): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/DistKLDivCriterion.cu(46): error: identifier "THCudaDoubleTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/DistKLDivCriterion.cu(46): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/AbsCriterion.cu(12): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/AbsCriterion.cu(12): error: identifier "THCudaHalfTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/AbsCriterion.cu(12): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BCECriterion.cu(65): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BCECriterion.cu(65): error: identifier "THCudaHalfTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BCECriterion.cu(65): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BCECriterion.cu(66): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BCECriterion.cu(66): error: identifier "THCudaHalfTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BCECriterion.cu(66): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/AbsCriterion.cu(40): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/AbsCriterion.cu(40): error: identifier "THCudaHalfTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/AbsCriterion.cu(40): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BCECriterion.cu(13): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BCECriterion.cu(13): error: identifier "THCudaTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BCECriterion.cu(13): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BCECriterion.cu(14): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BCECriterion.cu(14): error: identifier "THCudaTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BCECriterion.cu(14): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BCECriterion.cu(15): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BCECriterion.cu(15): error: identifier "THCudaTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/AbsCriterion.cu(12): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/AbsCriterion.cu(12): error: identifier "THCudaTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/AbsCriterion.cu(12): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/AbsCriterion.cu(40): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/AbsCriterion.cu(40): error: identifier "THCudaTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/AbsCriterion.cu(40): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/AbsCriterion.cu(12): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/AbsCriterion.cu(12): error: identifier "THCudaDoubleTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/AbsCriterion.cu(12): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/AbsCriterion.cu(40): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/AbsCriterion.cu(40): error: identifier "THCudaDoubleTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/AbsCriterion.cu(40): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BCECriterion.cu(65): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BCECriterion.cu(65): error: identifier "THCudaTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BCECriterion.cu(65): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BCECriterion.cu(66): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BCECriterion.cu(66): error: identifier "THCudaTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BCECriterion.cu(66): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BCECriterion.cu(13): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BCECriterion.cu(13): error: identifier "THCudaDoubleTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BCECriterion.cu(13): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BCECriterion.cu(14): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BCECriterion.cu(14): error: identifier "THCudaDoubleTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BCECriterion.cu(14): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BCECriterion.cu(15): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BCECriterion.cu(15): error: identifier "THCudaDoubleTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BCECriterion.cu(65): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BCECriterion.cu(65): error: identifier "THCudaDoubleTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BCECriterion.cu(65): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BCECriterion.cu(66): error: identifier "THCDescBuff" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BCECriterion.cu(66): error: identifier "THCudaDoubleTensor_sizeDesc" is undefined

/Users/anthonyyuan/desktop/src/cunn/lib/THCUNN/generic/BCECriterion.cu(66): error: identifier "THCDescBuff" is undefined

28 errors detected in the compilation of "/var/folders/nj/zxfjzp2153ld3q1y7tpf3qgh0000gn/T//tmpxft_00004386_00000000-7_DistKLDivCriterion.cpp1.ii".
22 errors detected in the compilation of "/var/folders/nj/zxfjzp2153ld3q1y7tpf3qgh0000gn/T//tmpxft_00004392_00000000-7_AbsCriterion.cpp1.ii".
CMake Error at THCUNN_generated_DistKLDivCriterion.cu.o.cmake:267 (message):
Error generating file
/Users/anthonyyuan/desktop/src/cunn/build/lib/THCUNN/CMakeFiles/THCUNN.dir//./THCUNN_generated_DistKLDivCriterion.cu.o

make[2]: *** [lib/THCUNN/CMakeFiles/THCUNN.dir/THCUNN_generated_DistKLDivCriterion.cu.o] Error 1
CMake Error at THCUNN_generated_AbsCriterion.cu.o.cmake:267 (message):
Error generating file
/Users/anthonyyuan/desktop/src/cunn/build/lib/THCUNN/CMakeFiles/THCUNN.dir//./THCUNN_generated_AbsCriterion.cu.o

make[2]: *** [lib/THCUNN/CMakeFiles/THCUNN.dir/THCUNN_generated_AbsCriterion.cu.o] Error 1
46 errors detected in the compilation of "/var/folders/nj/zxfjzp2153ld3q1y7tpf3qgh0000gn/T//tmpxft_00004383_00000000-7_BCECriterion.cpp1.ii".
CMake Error at THCUNN_generated_BCECriterion.cu.o.cmake:267 (message):
Error generating file
/Users/anthonyyuan/desktop/src/cunn/build/lib/THCUNN/CMakeFiles/THCUNN.dir//./THCUNN_generated_BCECriterion.cu.o

make[2]: *** [lib/THCUNN/CMakeFiles/THCUNN.dir/THCUNN_generated_BCECriterion.cu.o] Error 1
make[1]: *** [lib/THCUNN/CMakeFiles/THCUNN.dir/all] Error 2
make: *** [all] Error 2

Error: Build error: Failed building.
yuanhuaans-MacBook-Pro:cunn anthonyyuan$

@chgsilva
Copy link

I am receiving the same error.

Did you figure it out how to solve it?

@jnhwkim
Copy link
Contributor

jnhwkim commented Apr 4, 2017

Did you update cutorch?
I had the same problem, I have solved this issue with cd ~/torch & ./update.sh. (path to torch installation)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants