Thanks for your reply!
I am a newbie here, so I am not too sure what the install logs are. I did check the CMakeError.log file and this is what I see there regarding the error:
Run Build Command(s):/usr/bin/make cmTC_f7d0a/fast && /usr/bin/make  -f CMakeFiles/cmTC_f7d0a.dir/build.make CMakeFiles/cmTC_f7d0a.dir/build
make[1]: Entering directory '/home/simulations/pytorch/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_f7d0a.dir/src.cxx.o
/usr/bin/c++ -DHAS_WERROR_CAST_FUNCTION_TYPE -I/home/simulations/anaconda3/envs/pytorch-build/include -I/usr/local/cuda-10.2/include -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -DNDEBUG -DUSE_KINETO -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -DEDGE_PROFILER_USE_KINETO -O2 -fPIC -Wno-narrowing -Wall -Wextra -Werror=return-type -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-function -Wno-unused-result -Wno-unused-local-typedefs -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-psabi -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format  -fPIE   -Werror=cast-function-type -std=gnu++14 -o CMakeFiles/cmTC_f7d0a.dir/src.cxx.o -c /home/simulations/pytorch/build/CMakeFiles/CMakeTmp/src.cxx
cc1plus: error: -Werror=cast-function-type: no option -Wcast-function-type
CMakeFiles/cmTC_f7d0a.dir/build.make:84: recipe for target 'CMakeFiles/cmTC_f7d0a.dir/src.cxx.o' failed
make[1]: *** [CMakeFiles/cmTC_f7d0a.dir/src.cxx.o] Error 1
make[1]: Leaving directory '/home/simulations/pytorch/build/CMakeFiles/CMakeTmp'
Makefile:140: recipe for target 'cmTC_f7d0a/fast' failed
make: *** [cmTC_f7d0a/fast] Error 2

Is that helpful? Should I check any other log files?
Thanks again!