<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic dpct giving error in thrust files in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-giving-error-in-thrust-files/m-p/1185850#M452</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to convert &lt;A href="https://github.com/h2oai/h2o4gpu"&gt;h2o4gpu &lt;/A&gt;code using dpct and it is giving following errors while parsing thrust files. Is there any solution to these errors.&lt;/P&gt;&lt;P&gt;File I am trying to convert is&amp;nbsp;&lt;A href="https://github.com/h2oai/h2o4gpu/blob/master/src/gpu/h2o4gpuglm.cu"&gt;src/gpu/h2o4gpuglm.cu&lt;/A&gt;. Though I received similar in many other files that include thrust library files.&lt;/P&gt;
&lt;PRE class="brush:; class-name:dark;"&gt;C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu&amp;gt;dpct --cuda-include-path="C:\nvcc\include" --extra-arg="-I.\..\include" --extra-arg="-I.\include"  --extra-arg="-D_CRT_SECURE_NO_WARNINGS" --out-root=dpct h2o4gpuglm.cu
NOTE: Could not auto-detect compilation database for file 'h2o4gpuglm.cu' in 'C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu' or any parent directory.
Processing: C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:27:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\include\cuda_utils.h:7:
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\include\cuda_utils2.h:42:9: warning: 'CUDACHECK' macro redefined [-Wmacro-redefined]
#define CUDACHECK(cmd) \
        ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\include\cuda_utils2.h:9:9: note: previous definition is here
#define CUDACHECK(cmd)                                        \
        ^
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:4:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\solver\glm.h:77:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:14:
In file included from C:\nvcc\include\thrust\device_vector.h:25:
In file included from C:\nvcc\include\thrust\detail\vector_base.h:29:
In file included from C:\nvcc\include\thrust\detail\contiguous_storage.h:240:
In file included from C:\nvcc\include\thrust\detail\contiguous_storage.inl:22:
In file included from C:\nvcc\include\thrust\detail\allocator\copy_construct_range.h:46:
In file included from C:\nvcc\include\thrust\detail\allocator\copy_construct_range.inl:22:
In file included from C:\nvcc\include\thrust\tuple.h:34:
C:\nvcc\include\thrust\detail\tuple.inl:256:20: error: implicit instantiation of undefined template 'thrust::device_reference&amp;lt;const double&amp;gt;'
  stored_head_type head;
                   ^
C:\nvcc\include\thrust\tuple.h:198:12: note: in instantiation of template class 'thrust::detail::cons&amp;lt;thrust::device_reference&amp;lt;const double&amp;gt;, thrust::detail::cons&amp;lt;thrust::device_reference&amp;lt;const double&amp;gt;, thrust::null_type&amp;gt; &amp;gt;' requested here
    public detail::map_tuple_to_cons&amp;lt;T0, T1, T2, T3, T4, T5, T6, T7, T8, T9&amp;gt;::type
           ^
C:\nvcc\include\thrust\tuple.h:90:52: note: in instantiation of template class 'thrust::tuple&amp;lt;thrust::device_reference&amp;lt;const double&amp;gt;, thrust::device_reference&amp;lt;const double&amp;gt;, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type&amp;gt;' requested here
  static const int value = 1 + tuple_size&amp;lt;typename T::tail_type&amp;gt;::value;
                                                   ^
C:\nvcc\include\thrust\iterator\detail\zip_iterator_base.h:299:14: note: in instantiation of template class 'thrust::tuple_size&amp;lt;thrust::tuple&amp;lt;thrust::device_reference&amp;lt;const double&amp;gt;, thrust::device_reference&amp;lt;const double&amp;gt;, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type&amp;gt; &amp;gt;' requested here
        (i &amp;lt; tuple_size&amp;lt;Tuple&amp;gt;::value),
             ^
C:\nvcc\include\thrust\iterator\detail\zip_iterator_base.h:309:20: note: in instantiation of template class 'thrust::detail::zip_iterator_base_ns::tuple_elements_helper&amp;lt;0, thrust::tuple&amp;lt;thrust::device_reference&amp;lt;const double&amp;gt;, thrust::device_reference&amp;lt;const double&amp;gt;, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type&amp;gt; &amp;gt;' requested here
  typedef typename tuple_elements_helper&amp;lt;0,Tuple&amp;gt;::type T0;
                   ^
C:\nvcc\include\thrust\iterator\detail\zip_iterator_base.h:336:14: note: in instantiation of template class 'thrust::detail::zip_iterator_base_ns::tuple_elements&amp;lt;thrust::tuple&amp;lt;thrust::device_reference&amp;lt;const double&amp;gt;, thrust::device_reference&amp;lt;const double&amp;gt;, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type&amp;gt; &amp;gt;' requested here
    typename elements::T0,
             ^
C:\nvcc\include\thrust\iterator\detail\zip_iterator_base.h:365:44: note: in instantiation of template class 'thrust::detail::zip_iterator_base_ns::tuple_of_iterator_references&amp;lt;thrust::tuple&amp;lt;thrust::device_ptr&amp;lt;const double&amp;gt;, thrust::device_ptr&amp;lt;const double&amp;gt;, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type&amp;gt; &amp;gt;' requested here
    typedef typename zip_iterator_base_ns::tuple_of_iterator_references&amp;lt;IteratorTuple&amp;gt;::type reference;
                                           ^
C:\nvcc\include\thrust\iterator\zip_iterator.h:141:22: note: in instantiation of template class 'thrust::detail::zip_iterator_base&amp;lt;thrust::tuple&amp;lt;thrust::device_ptr&amp;lt;const double&amp;gt;, thrust::device_ptr&amp;lt;const double&amp;gt;, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type&amp;gt; &amp;gt;' requested here
    : public detail::zip_iterator_base&amp;lt;IteratorTuple&amp;gt;::type
                     ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:729:7: note: in instantiation of template class 'thrust::zip_iterator&amp;lt;thrust::tuple&amp;lt;thrust::device_ptr&amp;lt;const double&amp;gt;, thrust::device_ptr&amp;lt;const double&amp;gt;, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type&amp;gt; &amp;gt;' requested here
      thrust::make_zip_iterator(thrust::make_tuple(
      ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:367:4: note: in instantiation of function template specialization 'ProjSubgradEval&amp;lt;double&amp;gt;' requested here
                        ProjSubgradEval(g_gpu, xprev.data, x.data, xtemp.data);
                        ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:989:16: note: in instantiation of member function 'h2o4gpu::H2O4GPU&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt;, h2o4gpu::ProjectorDirect&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt; &amp;gt; &amp;gt;::Solve' requested here
template class H2O4GPU&amp;lt;double, MatrixDense&amp;lt;double&amp;gt;,
               ^
C:\nvcc\include\thrust\device_ptr.h:37:28: note: template is declared here
template&amp;lt;typename T&amp;gt; class device_reference;
                           ^
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:4:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\solver\glm.h:77:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:14:
In file included from C:\nvcc\include\thrust\device_vector.h:25:
In file included from C:\nvcc\include\thrust\detail\vector_base.h:29:
In file included from C:\nvcc\include\thrust\detail\contiguous_storage.h:240:
In file included from C:\nvcc\include\thrust\detail\contiguous_storage.inl:22:
In file included from C:\nvcc\include\thrust\detail\allocator\copy_construct_range.h:46:
In file included from C:\nvcc\include\thrust\detail\allocator\copy_construct_range.inl:22:
In file included from C:\nvcc\include\thrust\tuple.h:34:
C:\nvcc\include\thrust\detail\tuple.inl:373:20: error: implicit instantiation of undefined template 'thrust::device_reference&amp;lt;const double&amp;gt;'
  stored_head_type head;
                   ^
C:\nvcc\include\thrust\detail\tuple.inl:257:13: note: in instantiation of template class 'thrust::detail::cons&amp;lt;thrust::device_reference&amp;lt;const double&amp;gt;, thrust::null_type&amp;gt;' requested here
  tail_type tail;
            ^
C:\nvcc\include\thrust\tuple.h:198:12: note: in instantiation of template class 'thrust::detail::cons&amp;lt;thrust::device_reference&amp;lt;const double&amp;gt;, thrust::detail::cons&amp;lt;thrust::device_reference&amp;lt;const double&amp;gt;, thrust::null_type&amp;gt; &amp;gt;' requested here
    public detail::map_tuple_to_cons&amp;lt;T0, T1, T2, T3, T4, T5, T6, T7, T8, T9&amp;gt;::type
           ^
C:\nvcc\include\thrust\tuple.h:90:52: note: in instantiation of template class 'thrust::tuple&amp;lt;thrust::device_reference&amp;lt;const double&amp;gt;, thrust::device_reference&amp;lt;const double&amp;gt;, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type&amp;gt;' requested here
  static const int value = 1 + tuple_size&amp;lt;typename T::tail_type&amp;gt;::value;
                                                   ^
C:\nvcc\include\thrust\iterator\detail\zip_iterator_base.h:299:14: note: in instantiation of template class 'thrust::tuple_size&amp;lt;thrust::tuple&amp;lt;thrust::device_reference&amp;lt;const double&amp;gt;, thrust::device_reference&amp;lt;const double&amp;gt;, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type&amp;gt; &amp;gt;' requested here
        (i &amp;lt; tuple_size&amp;lt;Tuple&amp;gt;::value),
             ^
C:\nvcc\include\thrust\iterator\detail\zip_iterator_base.h:309:20: note: in instantiation of template class 'thrust::detail::zip_iterator_base_ns::tuple_elements_helper&amp;lt;0, thrust::tuple&amp;lt;thrust::device_reference&amp;lt;const double&amp;gt;, thrust::device_reference&amp;lt;const double&amp;gt;, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type&amp;gt; &amp;gt;' requested here
  typedef typename tuple_elements_helper&amp;lt;0,Tuple&amp;gt;::type T0;
                   ^
C:\nvcc\include\thrust\iterator\detail\zip_iterator_base.h:336:14: note: (skipping 1 context in backtrace; use -ftemplate-backtrace-limit=0 to see all)
    typename elements::T0,
             ^
C:\nvcc\include\thrust\iterator\detail\zip_iterator_base.h:365:44: note: in instantiation of template class 'thrust::detail::zip_iterator_base_ns::tuple_of_iterator_references&amp;lt;thrust::tuple&amp;lt;thrust::device_ptr&amp;lt;const double&amp;gt;, thrust::device_ptr&amp;lt;const double&amp;gt;, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type&amp;gt; &amp;gt;' requested here
    typedef typename zip_iterator_base_ns::tuple_of_iterator_references&amp;lt;IteratorTuple&amp;gt;::type reference;
                                           ^
C:\nvcc\include\thrust\iterator\zip_iterator.h:141:22: note: in instantiation of template class 'thrust::detail::zip_iterator_base&amp;lt;thrust::tuple&amp;lt;thrust::device_ptr&amp;lt;const double&amp;gt;, thrust::device_ptr&amp;lt;const double&amp;gt;, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type&amp;gt; &amp;gt;' requested here
    : public detail::zip_iterator_base&amp;lt;IteratorTuple&amp;gt;::type
                     ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:729:7: note: in instantiation of template class 'thrust::zip_iterator&amp;lt;thrust::tuple&amp;lt;thrust::device_ptr&amp;lt;const double&amp;gt;, thrust::device_ptr&amp;lt;const double&amp;gt;, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type&amp;gt; &amp;gt;' requested here
      thrust::make_zip_iterator(thrust::make_tuple(
      ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:367:4: note: in instantiation of function template specialization 'ProjSubgradEval&amp;lt;double&amp;gt;' requested here
                        ProjSubgradEval(g_gpu, xprev.data, x.data, xtemp.data);
                        ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:989:16: note: in instantiation of member function 'h2o4gpu::H2O4GPU&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt;, h2o4gpu::ProjectorDirect&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt; &amp;gt; &amp;gt;::Solve' requested here
template class H2O4GPU&amp;lt;double, MatrixDense&amp;lt;double&amp;gt;,
               ^
C:\nvcc\include\thrust\device_ptr.h:37:28: note: template is declared here
template&amp;lt;typename T&amp;gt; class device_reference;
                           ^
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:4:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\solver\glm.h:77:
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:700:7: error: no matching conversion for functional-style cast from 'double' to 'ProxEvalF&amp;lt;double&amp;gt;'
      ProxEvalF&amp;lt;T&amp;gt;(rho));
      ^~~~~~~~~~~~~~~~
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:443:3: note: in instantiation of function template specialization 'ProxEval&amp;lt;double&amp;gt;' requested here
                ProxEval(g_gpu, _rho, x.data, x12.data); // Evaluate g(rho,x)-&amp;gt;x12 (x^{1/2} in paper)
                ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:989:16: note: in instantiation of member function 'h2o4gpu::H2O4GPU&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt;, h2o4gpu::ProjectorDirect&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt; &amp;gt; &amp;gt;::Solve' requested here
template class H2O4GPU&amp;lt;double, MatrixDense&amp;lt;double&amp;gt;,
               ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:687:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'double' to 'const ProxEvalF&amp;lt;double&amp;gt;' for 1st argument
struct ProxEvalF : thrust::binary_function&amp;lt;FunctionObj&amp;lt;T&amp;gt;, T, T&amp;gt; {
       ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:687:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'double' to 'ProxEvalF&amp;lt;double&amp;gt;' for 1st argument
struct ProxEvalF : thrust::binary_function&amp;lt;FunctionObj&amp;lt;T&amp;gt;, T, T&amp;gt; {
       ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:689:14: note: candidate constructor not viable: call to __device__ function from __host__ function
  __device__ ProxEvalF(T rho) : rho(rho) { }
             ^
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:4:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\solver\glm.h:77:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:14:
In file included from C:\nvcc\include\thrust\device_vector.h:25:
In file included from C:\nvcc\include\thrust\detail\vector_base.h:29:
In file included from C:\nvcc\include\thrust\detail\contiguous_storage.h:240:
In file included from C:\nvcc\include\thrust\detail\contiguous_storage.inl:22:
In file included from C:\nvcc\include\thrust\detail\allocator\copy_construct_range.h:46:
In file included from C:\nvcc\include\thrust\detail\allocator\copy_construct_range.inl:26:
In file included from C:\nvcc\include\thrust\for_each.h:279:
In file included from C:\nvcc\include\thrust\detail\for_each.inl:27:
In file included from C:\nvcc\include\thrust\system\detail\adl\for_each.h:42:
In file included from C:\nvcc\include\thrust\system\cuda\detail\for_each.h:34:
C:\nvcc\include\thrust\system\cuda\detail\util.h:311:15: error: implicit instantiation of undefined template 'thrust::device_reference&amp;lt;double&amp;gt;'
    return op(input&lt;N&gt;);
              ^
C:\nvcc\include\thrust\system\cuda\detail\cub\agent\agent_reduce.cuh:290:32: note: in instantiation of member function 'thrust::cuda_cub::transform_input_iterator_t&amp;lt;double, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt; &amp;gt;::operator[]' requested here
            thread_aggregate = d_wrapped_in[block_offset + thread_offset];
                               ^
C:\nvcc\include\thrust\system\cuda\detail\cub\agent\agent_reduce.cuh:322:13: note: in instantiation of function template specialization 'thrust::cuda_cub::cub::AgentReduce&amp;lt;thrust::cuda_cub::cub::AgentReducePolicy&amp;lt;64, 8, 2, thrust::cuda_cub::cub::BLOCK_REDUCE_RAKING, thrust::cuda_cub::cub::LOAD_DEFAULT&amp;gt;, thrust::cuda_cub::transform_input_iterator_t&amp;lt;double, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt; &amp;gt;, double *, int, thrust::plus&amp;lt;double&amp;gt; &amp;gt;::ConsumeTile&amp;lt;1, 0&amp;gt;' requested here
            ConsumeTile&amp;lt;true&amp;gt;(thread_aggregate, even_share.block_offset, valid_items, Int2Type&amp;lt;false&amp;gt;(), can_vectorize);
            ^
C:\nvcc\include\thrust\system\cuda\detail\cub\agent\agent_reduce.cuh:360:13: note: in instantiation of function template specialization 'thrust::cuda_cub::cub::AgentReduce&amp;lt;thrust::cuda_cub::cub::AgentReducePolicy&amp;lt;64, 8, 2, thrust::cuda_cub::cub::BLOCK_REDUCE_RAKING, thrust::cuda_cub::cub::LOAD_DEFAULT&amp;gt;, thrust::cuda_cub::transform_input_iterator_t&amp;lt;double, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt; &amp;gt;, double *, int, thrust::plus&amp;lt;double&amp;gt; &amp;gt;::ConsumeRange&amp;lt;0&amp;gt;' requested here
            ConsumeRange(even_share, Int2Type&amp;lt;true &amp;amp;&amp;amp; ATTEMPT_VECTORIZATION&amp;gt;()) :
            ^
C:\nvcc\include\thrust\system\cuda\detail\cub\device\dispatch\dispatch_reduce.cuh:141:78: note: in instantiation of member function 'thrust::cuda_cub::cub::AgentReduce&amp;lt;thrust::cuda_cub::cub::AgentReducePolicy&amp;lt;64, 8, 2, thrust::cuda_cub::cub::BLOCK_REDUCE_RAKING, thrust::cuda_cub::cub::LOAD_DEFAULT&amp;gt;, thrust::cuda_cub::transform_input_iterator_t&amp;lt;double, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt; &amp;gt;, double *, int, thrust::plus&amp;lt;double&amp;gt; &amp;gt;::ConsumeRange' requested here
    OutputT block_aggregate = AgentReduceT(temp_storage, d_in, reduction_op).ConsumeRange(
                                                                             ^
C:\nvcc\include\thrust\system\cuda\detail\cub\device\dispatch\dispatch_reduce.cuh:599:17: note: in instantiation of function template specialization 'thrust::cuda_cub::cub::DeviceReduceSingleTileKernel&amp;lt;thrust::cuda_cub::cub::DeviceReducePolicy&amp;lt;double, int, thrust::plus&amp;lt;double&amp;gt; &amp;gt;::Policy600, thrust::cuda_cub::transform_input_iterator_t&amp;lt;double, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt; &amp;gt;, double *, int, thrust::plus&amp;lt;double&amp;gt;, double&amp;gt;' requested here
                DeviceReduceSingleTileKernel&amp;lt;MaxPolicyT, InputIteratorT, OutputIteratorT, OffsetT, ReductionOpT, OutputT&amp;gt;);
                ^
C:/nvcc/include\thrust/system/cuda/detail/cub/device/dispatch/../../util_device.cuh:332:28: note: (skipping 10 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
        return op.template Invoke&amp;lt;PolicyT&amp;gt;();
                           ^
C:\nvcc\include\thrust\detail\transform_reduce.inl:47:10: note: in instantiation of function template specialization 'thrust::cuda_cub::transform_reduce&amp;lt;thrust::cuda_cub::tag, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  return transform_reduce(thrust::detail::derived_cast(thrust::detail::strip_const(exec)), first, last, unary_op, init, binary_op);
         ^
C:\nvcc\include\thrust\detail\transform_reduce.inl:67:18: note: in instantiation of function template specialization 'thrust::transform_reduce&amp;lt;thrust::cuda_cub::tag, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  return thrust::transform_reduce(select_system(system), first, last, unary_op, init, binary_op);
                 ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\include\cml\cml_blas.cuh:155:25: note: in instantiation of function template specialization 'thrust::transform_reduce&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  T nrm2 = sqrt(thrust::transform_reduce(strided_x.begin(), strided_x.end(),
                        ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:453:23: note: in instantiation of function template specialization 'cml::blas_nrm2&amp;lt;double&amp;gt;' requested here
                                + _rel_tol * cml::blas_nrm2(hdl, &amp;amp;z)
                                                  ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:989:16: note: in instantiation of member function 'h2o4gpu::H2O4GPU&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt;, h2o4gpu::ProjectorDirect&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt; &amp;gt; &amp;gt;::Solve' requested here
template class H2O4GPU&amp;lt;double, MatrixDense&amp;lt;double&amp;gt;,
               ^
C:\nvcc\include\thrust\device_ptr.h:37:28: note: template is declared here
template&amp;lt;typename T&amp;gt; class device_reference;
                           ^
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:4:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\solver\glm.h:77:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:14:
In file included from C:\nvcc\include\thrust\device_vector.h:25:
In file included from C:\nvcc\include\thrust\detail\vector_base.h:25:
In file included from C:\nvcc\include\thrust\iterator\detail\normal_iterator.h:25:
In file included from C:\nvcc\include\thrust\iterator\iterator_adaptor.h:36:
C:\nvcc\include\thrust\iterator\iterator_facade.h:326:15: error: implicit instantiation of undefined template 'thrust::device_reference&amp;lt;double&amp;gt;'
    reference operator[](difference_type n) const
              ^
C:\nvcc\include\thrust\system\cuda\detail\util.h:311:15: note: in instantiation of member function 'thrust::iterator_facade&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, double, thrust::cuda_cub::tag, thrust::random_access_traversal_tag, thrust::device_reference&amp;lt;double&amp;gt;, long long&amp;gt;::operator[]' requested here
    return op(input&lt;N&gt;);
              ^
C:\nvcc\include\thrust\system\cuda\detail\cub\agent\agent_reduce.cuh:290:32: note: in instantiation of member function 'thrust::cuda_cub::transform_input_iterator_t&amp;lt;double, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt; &amp;gt;::operator[]' requested here
            thread_aggregate = d_wrapped_in[block_offset + thread_offset];
                               ^
C:\nvcc\include\thrust\system\cuda\detail\cub\agent\agent_reduce.cuh:322:13: note: in instantiation of function template specialization 'thrust::cuda_cub::cub::AgentReduce&amp;lt;thrust::cuda_cub::cub::AgentReducePolicy&amp;lt;64, 8, 2, thrust::cuda_cub::cub::BLOCK_REDUCE_RAKING, thrust::cuda_cub::cub::LOAD_DEFAULT&amp;gt;, thrust::cuda_cub::transform_input_iterator_t&amp;lt;double, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt; &amp;gt;, double *, int, thrust::plus&amp;lt;double&amp;gt; &amp;gt;::ConsumeTile&amp;lt;1, 0&amp;gt;' requested here
            ConsumeTile&amp;lt;true&amp;gt;(thread_aggregate, even_share.block_offset, valid_items, Int2Type&amp;lt;false&amp;gt;(), can_vectorize);
            ^
C:\nvcc\include\thrust\system\cuda\detail\cub\agent\agent_reduce.cuh:360:13: note: in instantiation of function template specialization 'thrust::cuda_cub::cub::AgentReduce&amp;lt;thrust::cuda_cub::cub::AgentReducePolicy&amp;lt;64, 8, 2, thrust::cuda_cub::cub::BLOCK_REDUCE_RAKING, thrust::cuda_cub::cub::LOAD_DEFAULT&amp;gt;, thrust::cuda_cub::transform_input_iterator_t&amp;lt;double, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt; &amp;gt;, double *, int, thrust::plus&amp;lt;double&amp;gt; &amp;gt;::ConsumeRange&amp;lt;0&amp;gt;' requested here
            ConsumeRange(even_share, Int2Type&amp;lt;true &amp;amp;&amp;amp; ATTEMPT_VECTORIZATION&amp;gt;()) :
            ^
C:\nvcc\include\thrust\system\cuda\detail\cub\device\dispatch\dispatch_reduce.cuh:141:78: note: in instantiation of member function 'thrust::cuda_cub::cub::AgentReduce&amp;lt;thrust::cuda_cub::cub::AgentReducePolicy&amp;lt;64, 8, 2, thrust::cuda_cub::cub::BLOCK_REDUCE_RAKING, thrust::cuda_cub::cub::LOAD_DEFAULT&amp;gt;, thrust::cuda_cub::transform_input_iterator_t&amp;lt;double, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt; &amp;gt;, double *, int, thrust::plus&amp;lt;double&amp;gt; &amp;gt;::ConsumeRange' requested here
    OutputT block_aggregate = AgentReduceT(temp_storage, d_in, reduction_op).ConsumeRange(
                                                                             ^
C:\nvcc\include\thrust\system\cuda\detail\cub\device\dispatch\dispatch_reduce.cuh:599:17: note: (skipping 11 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
                DeviceReduceSingleTileKernel&amp;lt;MaxPolicyT, InputIteratorT, OutputIteratorT, OffsetT, ReductionOpT, OutputT&amp;gt;);
                ^
C:\nvcc\include\thrust\detail\transform_reduce.inl:47:10: note: in instantiation of function template specialization 'thrust::cuda_cub::transform_reduce&amp;lt;thrust::cuda_cub::tag, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  return transform_reduce(thrust::detail::derived_cast(thrust::detail::strip_const(exec)), first, last, unary_op, init, binary_op);
         ^
C:\nvcc\include\thrust\detail\transform_reduce.inl:67:18: note: in instantiation of function template specialization 'thrust::transform_reduce&amp;lt;thrust::cuda_cub::tag, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  return thrust::transform_reduce(select_system(system), first, last, unary_op, init, binary_op);
                 ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\include\cml\cml_blas.cuh:155:25: note: in instantiation of function template specialization 'thrust::transform_reduce&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  T nrm2 = sqrt(thrust::transform_reduce(strided_x.begin(), strided_x.end(),
                        ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:453:23: note: in instantiation of function template specialization 'cml::blas_nrm2&amp;lt;double&amp;gt;' requested here
                                + _rel_tol * cml::blas_nrm2(hdl, &amp;amp;z)
                                                  ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:989:16: note: in instantiation of member function 'h2o4gpu::H2O4GPU&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt;, h2o4gpu::ProjectorDirect&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt; &amp;gt; &amp;gt;::Solve' requested here
template class H2O4GPU&amp;lt;double, MatrixDense&amp;lt;double&amp;gt;,
               ^
C:\nvcc\include\thrust\device_ptr.h:37:28: note: template is declared here
template&amp;lt;typename T&amp;gt; class device_reference;
                           ^
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:4:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\solver\glm.h:77:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:14:
In file included from C:\nvcc\include\thrust\device_vector.h:25:
In file included from C:\nvcc\include\thrust\detail\vector_base.h:25:
In file included from C:\nvcc\include\thrust\iterator\detail\normal_iterator.h:25:
In file included from C:\nvcc\include\thrust\iterator\iterator_adaptor.h:36:
C:\nvcc\include\thrust\iterator\iterator_facade.h:328:14: error: implicit instantiation of undefined template 'thrust::device_reference&amp;lt;double&amp;gt;'
      return *(this-&amp;gt;derived() + n);
             ^
C:\nvcc\include\thrust\device_ptr.h:37:28: note: template is declared here
template&amp;lt;typename T&amp;gt; class device_reference;
                           ^
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:4:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\solver\glm.h:77:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:14:
In file included from C:\nvcc\include\thrust\device_vector.h:25:
In file included from C:\nvcc\include\thrust\detail\vector_base.h:25:
In file included from C:\nvcc\include\thrust\iterator\detail\normal_iterator.h:25:
In file included from C:\nvcc\include\thrust\iterator\iterator_adaptor.h:36:
C:\nvcc\include\thrust\iterator\iterator_facade.h:308:15: error: implicit instantiation of undefined template 'thrust::device_reference&amp;lt;double&amp;gt;'
    reference operator*() const
              ^
C:\nvcc\include\thrust\iterator\iterator_facade.h:328:14: note: in instantiation of member function 'thrust::iterator_facade&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, double, thrust::cuda_cub::tag, thrust::random_access_traversal_tag, thrust::device_reference&amp;lt;double&amp;gt;, long long&amp;gt;::operator*' requested here
      return *(this-&amp;gt;derived() + n);
             ^
C:\nvcc\include\thrust\system\cuda\detail\util.h:311:15: note: in instantiation of member function 'thrust::iterator_facade&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, double, thrust::cuda_cub::tag, thrust::random_access_traversal_tag, thrust::device_reference&amp;lt;double&amp;gt;, long long&amp;gt;::operator[]' requested here
    return op(input&lt;N&gt;);
              ^
C:\nvcc\include\thrust\system\cuda\detail\cub\agent\agent_reduce.cuh:290:32: note: in instantiation of member function 'thrust::cuda_cub::transform_input_iterator_t&amp;lt;double, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt; &amp;gt;::operator[]' requested here
            thread_aggregate = d_wrapped_in[block_offset + thread_offset];
                               ^
C:\nvcc\include\thrust\system\cuda\detail\cub\agent\agent_reduce.cuh:322:13: note: in instantiation of function template specialization 'thrust::cuda_cub::cub::AgentReduce&amp;lt;thrust::cuda_cub::cub::AgentReducePolicy&amp;lt;64, 8, 2, thrust::cuda_cub::cub::BLOCK_REDUCE_RAKING, thrust::cuda_cub::cub::LOAD_DEFAULT&amp;gt;, thrust::cuda_cub::transform_input_iterator_t&amp;lt;double, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt; &amp;gt;, double *, int, thrust::plus&amp;lt;double&amp;gt; &amp;gt;::ConsumeTile&amp;lt;1, 0&amp;gt;' requested here
            ConsumeTile&amp;lt;true&amp;gt;(thread_aggregate, even_share.block_offset, valid_items, Int2Type&amp;lt;false&amp;gt;(), can_vectorize);
            ^
C:\nvcc\include\thrust\system\cuda\detail\cub\agent\agent_reduce.cuh:360:13: note: in instantiation of function template specialization 'thrust::cuda_cub::cub::AgentReduce&amp;lt;thrust::cuda_cub::cub::AgentReducePolicy&amp;lt;64, 8, 2, thrust::cuda_cub::cub::BLOCK_REDUCE_RAKING, thrust::cuda_cub::cub::LOAD_DEFAULT&amp;gt;, thrust::cuda_cub::transform_input_iterator_t&amp;lt;double, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt; &amp;gt;, double *, int, thrust::plus&amp;lt;double&amp;gt; &amp;gt;::ConsumeRange&amp;lt;0&amp;gt;' requested here
            ConsumeRange(even_share, Int2Type&amp;lt;true &amp;amp;&amp;amp; ATTEMPT_VECTORIZATION&amp;gt;()) :
            ^
C:\nvcc\include\thrust\system\cuda\detail\cub\device\dispatch\dispatch_reduce.cuh:141:78: note: (skipping 12 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
    OutputT block_aggregate = AgentReduceT(temp_storage, d_in, reduction_op).ConsumeRange(
                                                                             ^
C:\nvcc\include\thrust\detail\transform_reduce.inl:47:10: note: in instantiation of function template specialization 'thrust::cuda_cub::transform_reduce&amp;lt;thrust::cuda_cub::tag, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  return transform_reduce(thrust::detail::derived_cast(thrust::detail::strip_const(exec)), first, last, unary_op, init, binary_op);
         ^
C:\nvcc\include\thrust\detail\transform_reduce.inl:67:18: note: in instantiation of function template specialization 'thrust::transform_reduce&amp;lt;thrust::cuda_cub::tag, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  return thrust::transform_reduce(select_system(system), first, last, unary_op, init, binary_op);
                 ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\include\cml\cml_blas.cuh:155:25: note: in instantiation of function template specialization 'thrust::transform_reduce&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  T nrm2 = sqrt(thrust::transform_reduce(strided_x.begin(), strided_x.end(),
                        ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:453:23: note: in instantiation of function template specialization 'cml::blas_nrm2&amp;lt;double&amp;gt;' requested here
                                + _rel_tol * cml::blas_nrm2(hdl, &amp;amp;z)
                                                  ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:989:16: note: in instantiation of member function 'h2o4gpu::H2O4GPU&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt;, h2o4gpu::ProjectorDirect&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt; &amp;gt; &amp;gt;::Solve' requested here
template class H2O4GPU&amp;lt;double, MatrixDense&amp;lt;double&amp;gt;,
               ^
C:\nvcc\include\thrust\device_ptr.h:37:28: note: template is declared here
template&amp;lt;typename T&amp;gt; class device_reference;
                           ^
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:4:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\solver\glm.h:77:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:14:
In file included from C:\nvcc\include\thrust\device_vector.h:25:
In file included from C:\nvcc\include\thrust\detail\vector_base.h:25:
In file included from C:\nvcc\include\thrust\iterator\detail\normal_iterator.h:25:
In file included from C:\nvcc\include\thrust\iterator\iterator_adaptor.h:36:
C:\nvcc\include\thrust\iterator\iterator_facade.h:310:14: error: implicit instantiation of undefined template 'thrust::device_reference&amp;lt;double&amp;gt;'
      return iterator_core_access::dereference(this-&amp;gt;derived());
             ^
C:\nvcc\include\thrust\device_ptr.h:37:28: note: template is declared here
template&amp;lt;typename T&amp;gt; class device_reference;
                           ^
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:4:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\solver\glm.h:77:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:14:
In file included from C:\nvcc\include\thrust\device_vector.h:25:
In file included from C:\nvcc\include\thrust\detail\vector_base.h:25:
In file included from C:\nvcc\include\thrust\iterator\detail\normal_iterator.h:25:
In file included from C:\nvcc\include\thrust\iterator\iterator_adaptor.h:36:
C:\nvcc\include\thrust\iterator\iterator_facade.h:126:39: error: implicit instantiation of undefined template 'thrust::device_reference&amp;lt;double&amp;gt;'
    static typename Facade::reference dereference(Facade const&amp;amp; f)
                                      ^
C:\nvcc\include\thrust\iterator\iterator_facade.h:310:36: note: in instantiation of function template specialization 'thrust::iterator_core_access::dereference&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt; &amp;gt;' requested here
      return iterator_core_access::dereference(this-&amp;gt;derived());
                                   ^
C:\nvcc\include\thrust\iterator\iterator_facade.h:328:14: note: in instantiation of member function 'thrust::iterator_facade&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, double, thrust::cuda_cub::tag, thrust::random_access_traversal_tag, thrust::device_reference&amp;lt;double&amp;gt;, long long&amp;gt;::operator*' requested here
      return *(this-&amp;gt;derived() + n);
             ^
C:\nvcc\include\thrust\system\cuda\detail\util.h:311:15: note: in instantiation of member function 'thrust::iterator_facade&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, double, thrust::cuda_cub::tag, thrust::random_access_traversal_tag, thrust::device_reference&amp;lt;double&amp;gt;, long long&amp;gt;::operator[]' requested here
    return op(input&lt;N&gt;);
              ^
C:\nvcc\include\thrust\system\cuda\detail\cub\agent\agent_reduce.cuh:290:32: note: in instantiation of member function 'thrust::cuda_cub::transform_input_iterator_t&amp;lt;double, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt; &amp;gt;::operator[]' requested here
            thread_aggregate = d_wrapped_in[block_offset + thread_offset];
                               ^
C:\nvcc\include\thrust\system\cuda\detail\cub\agent\agent_reduce.cuh:322:13: note: in instantiation of function template specialization 'thrust::cuda_cub::cub::AgentReduce&amp;lt;thrust::cuda_cub::cub::AgentReducePolicy&amp;lt;64, 8, 2, thrust::cuda_cub::cub::BLOCK_REDUCE_RAKING, thrust::cuda_cub::cub::LOAD_DEFAULT&amp;gt;, thrust::cuda_cub::transform_input_iterator_t&amp;lt;double, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt; &amp;gt;, double *, int, thrust::plus&amp;lt;double&amp;gt; &amp;gt;::ConsumeTile&amp;lt;1, 0&amp;gt;' requested here
            ConsumeTile&amp;lt;true&amp;gt;(thread_aggregate, even_share.block_offset, valid_items, Int2Type&amp;lt;false&amp;gt;(), can_vectorize);
            ^
C:\nvcc\include\thrust\system\cuda\detail\cub\agent\agent_reduce.cuh:360:13: note: (skipping 13 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
            ConsumeRange(even_share, Int2Type&amp;lt;true &amp;amp;&amp;amp; ATTEMPT_VECTORIZATION&amp;gt;()) :
            ^
C:\nvcc\include\thrust\detail\transform_reduce.inl:47:10: note: in instantiation of function template specialization 'thrust::cuda_cub::transform_reduce&amp;lt;thrust::cuda_cub::tag, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  return transform_reduce(thrust::detail::derived_cast(thrust::detail::strip_const(exec)), first, last, unary_op, init, binary_op);
         ^
C:\nvcc\include\thrust\detail\transform_reduce.inl:67:18: note: in instantiation of function template specialization 'thrust::transform_reduce&amp;lt;thrust::cuda_cub::tag, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  return thrust::transform_reduce(select_system(system), first, last, unary_op, init, binary_op);
                 ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\include\cml\cml_blas.cuh:155:25: note: in instantiation of function template specialization 'thrust::transform_reduce&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  T nrm2 = sqrt(thrust::transform_reduce(strided_x.begin(), strided_x.end(),
                        ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:453:23: note: in instantiation of function template specialization 'cml::blas_nrm2&amp;lt;double&amp;gt;' requested here
                                + _rel_tol * cml::blas_nrm2(hdl, &amp;amp;z)
                                                  ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:989:16: note: in instantiation of member function 'h2o4gpu::H2O4GPU&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt;, h2o4gpu::ProjectorDirect&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt; &amp;gt; &amp;gt;::Solve' requested here
template class H2O4GPU&amp;lt;double, MatrixDense&amp;lt;double&amp;gt;,
               ^
C:\nvcc\include\thrust\device_ptr.h:37:28: note: template is declared here
template&amp;lt;typename T&amp;gt; class device_reference;
                           ^
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:4:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\solver\glm.h:77:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:14:
In file included from C:\nvcc\include\thrust\device_vector.h:25:
In file included from C:\nvcc\include\thrust\detail\vector_base.h:25:
In file included from C:\nvcc\include\thrust\iterator\detail\normal_iterator.h:25:
In file included from C:\nvcc\include\thrust\iterator\iterator_adaptor.h:36:
C:\nvcc\include\thrust\iterator\iterator_facade.h:128:16: error: implicit instantiation of undefined template 'thrust::device_reference&amp;lt;double&amp;gt;'
      return f.dereference();
               ^
C:\nvcc\include\thrust\device_ptr.h:37:28: note: template is declared here
template&amp;lt;typename T&amp;gt; class device_reference;
                           ^
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:4:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\solver\glm.h:77:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:16:
In file included from C:\nvcc\include\thrust\inner_product.h:263:
In file included from C:\nvcc\include\thrust\detail\inner_product.inl:26:
In file included from C:\nvcc\include\thrust\system\detail\generic\inner_product.h:58:
In file included from C:\nvcc\include\thrust\system\detail\generic\inner_product.inl:21:
In file included from C:\nvcc\include\thrust\transform_reduce.h:197:
In file included from C:\nvcc\include\thrust\detail\transform_reduce.inl:25:
In file included from C:\nvcc\include\thrust\system\detail\generic\transform_reduce.h:52:
In file included from C:\nvcc\include\thrust\system\detail\generic\transform_reduce.inl:19:
In file included from C:\nvcc\include\thrust\reduce.h:784:
In file included from C:\nvcc\include\thrust\detail\reduce.inl:26:
In file included from C:\nvcc\include\thrust\system\detail\generic\reduce_by_key.h:88:
In file included from C:\nvcc\include\thrust\system\detail\generic\reduce_by_key.inl:30:
In file included from C:\nvcc\include\thrust\scatter.h:422:
In file included from C:\nvcc\include\thrust\detail\scatter.inl:25:
In file included from C:\nvcc\include\thrust\system\detail\generic\scatter.h:80:
In file included from C:\nvcc\include\thrust\system\detail\generic\scatter.inl:22:
C:\nvcc\include\thrust\iterator\permutation_iterator.h:177:33: error: implicit instantiation of undefined template 'thrust::device_reference&amp;lt;double&amp;gt;'
    typename super_t::reference dereference() const
                                ^
C:\nvcc\include\thrust\iterator\iterator_facade.h:128:16: note: in instantiation of member function 'thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;::dereference' requested here
      return f.dereference();
               ^
C:\nvcc\include\thrust\iterator\iterator_facade.h:310:36: note: in instantiation of function template specialization 'thrust::iterator_core_access::dereference&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt; &amp;gt;' requested here
      return iterator_core_access::dereference(this-&amp;gt;derived());
                                   ^
C:\nvcc\include\thrust\iterator\iterator_facade.h:328:14: note: in instantiation of member function 'thrust::iterator_facade&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, double, thrust::cuda_cub::tag, thrust::random_access_traversal_tag, thrust::device_reference&amp;lt;double&amp;gt;, long long&amp;gt;::operator*' requested here
      return *(this-&amp;gt;derived() + n);
             ^
C:\nvcc\include\thrust\system\cuda\detail\util.h:311:15: note: in instantiation of member function 'thrust::iterator_facade&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, double, thrust::cuda_cub::tag, thrust::random_access_traversal_tag, thrust::device_reference&amp;lt;double&amp;gt;, long long&amp;gt;::operator[]' requested here
    return op(input&lt;N&gt;);
              ^
C:\nvcc\include\thrust\system\cuda\detail\cub\agent\agent_reduce.cuh:290:32: note: in instantiation of member function 'thrust::cuda_cub::transform_input_iterator_t&amp;lt;double, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt; &amp;gt;::operator[]' requested here
            thread_aggregate = d_wrapped_in[block_offset + thread_offset];
                               ^
C:\nvcc\include\thrust\system\cuda\detail\cub\agent\agent_reduce.cuh:322:13: note: (skipping 14 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
            ConsumeTile&amp;lt;true&amp;gt;(thread_aggregate, even_share.block_offset, valid_items, Int2Type&amp;lt;false&amp;gt;(), can_vectorize);
            ^
C:\nvcc\include\thrust\detail\transform_reduce.inl:47:10: note: in instantiation of function template specialization 'thrust::cuda_cub::transform_reduce&amp;lt;thrust::cuda_cub::tag, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  return transform_reduce(thrust::detail::derived_cast(thrust::detail::strip_const(exec)), first, last, unary_op, init, binary_op);
         ^
C:\nvcc\include\thrust\detail\transform_reduce.inl:67:18: note: in instantiation of function template specialization 'thrust::transform_reduce&amp;lt;thrust::cuda_cub::tag, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  return thrust::transform_reduce(select_system(system), first, last, unary_op, init, binary_op);
                 ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\include\cml\cml_blas.cuh:155:25: note: in instantiation of function template specialization 'thrust::transform_reduce&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  T nrm2 = sqrt(thrust::transform_reduce(strided_x.begin(), strided_x.end(),
                        ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:453:23: note: in instantiation of function template specialization 'cml::blas_nrm2&amp;lt;double&amp;gt;' requested here
                                + _rel_tol * cml::blas_nrm2(hdl, &amp;amp;z)
                                                  ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:989:16: note: in instantiation of member function 'h2o4gpu::H2O4GPU&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt;, h2o4gpu::ProjectorDirect&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt; &amp;gt; &amp;gt;::Solve' requested here
template class H2O4GPU&amp;lt;double, MatrixDense&amp;lt;double&amp;gt;,
               ^
C:\nvcc\include\thrust\device_ptr.h:37:28: note: template is declared here
template&amp;lt;typename T&amp;gt; class device_reference;
                           ^
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:4:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\solver\glm.h:77:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:16:
In file included from C:\nvcc\include\thrust\inner_product.h:263:
In file included from C:\nvcc\include\thrust\detail\inner_product.inl:26:
In file included from C:\nvcc\include\thrust\system\detail\generic\inner_product.h:58:
In file included from C:\nvcc\include\thrust\system\detail\generic\inner_product.inl:21:
In file included from C:\nvcc\include\thrust\transform_reduce.h:197:
In file included from C:\nvcc\include\thrust\detail\transform_reduce.inl:25:
In file included from C:\nvcc\include\thrust\system\detail\generic\transform_reduce.h:52:
In file included from C:\nvcc\include\thrust\system\detail\generic\transform_reduce.inl:19:
In file included from C:\nvcc\include\thrust\reduce.h:784:
In file included from C:\nvcc\include\thrust\detail\reduce.inl:26:
In file included from C:\nvcc\include\thrust\system\detail\generic\reduce_by_key.h:88:
In file included from C:\nvcc\include\thrust\system\detail\generic\reduce_by_key.inl:30:
In file included from C:\nvcc\include\thrust\scatter.h:422:
In file included from C:\nvcc\include\thrust\detail\scatter.inl:25:
In file included from C:\nvcc\include\thrust\system\detail\generic\scatter.h:80:
In file included from C:\nvcc\include\thrust\system\detail\generic\scatter.inl:22:
C:\nvcc\include\thrust\iterator\permutation_iterator.h:179:14: error: implicit instantiation of undefined template 'thrust::device_reference&amp;lt;double&amp;gt;'
      return *(m_element_iterator + *this-&amp;gt;base());
             ^
C:\nvcc\include\thrust\device_ptr.h:37:28: note: template is declared here
template&amp;lt;typename T&amp;gt; class device_reference;
                           ^
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:4:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\solver\glm.h:77:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:14:
In file included from C:\nvcc\include\thrust\device_vector.h:25:
In file included from C:\nvcc\include\thrust\detail\vector_base.h:25:
In file included from C:\nvcc\include\thrust\iterator\detail\normal_iterator.h:25:
In file included from C:\nvcc\include\thrust\iterator\iterator_adaptor.h:36:
C:\nvcc\include\thrust\iterator\iterator_facade.h:308:15: error: implicit instantiation of undefined template 'thrust::device_reference&amp;lt;double&amp;gt;'
    reference operator*() const
              ^
C:\nvcc\include\thrust\iterator\permutation_iterator.h:179:14: note: in instantiation of member function 'thrust::iterator_facade&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, double, thrust::cuda_cub::tag, thrust::random_access_traversal_tag, thrust::device_reference&amp;lt;double&amp;gt;, long long&amp;gt;::operator*' requested here
      return *(m_element_iterator + *this-&amp;gt;base());
             ^
C:\nvcc\include\thrust\iterator\iterator_facade.h:128:16: note: in instantiation of member function 'thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;::dereference' requested here
      return f.dereference();
               ^
C:\nvcc\include\thrust\iterator\iterator_facade.h:310:36: note: in instantiation of function template specialization 'thrust::iterator_core_access::dereference&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt; &amp;gt;' requested here
      return iterator_core_access::dereference(this-&amp;gt;derived());
                                   ^
C:\nvcc\include\thrust\iterator\iterator_facade.h:328:14: note: in instantiation of member function 'thrust::iterator_facade&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, double, thrust::cuda_cub::tag, thrust::random_access_traversal_tag, thrust::device_reference&amp;lt;double&amp;gt;, long long&amp;gt;::operator*' requested here
      return *(this-&amp;gt;derived() + n);
             ^
C:\nvcc\include\thrust\system\cuda\detail\util.h:311:15: note: in instantiation of member function 'thrust::iterator_facade&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, double, thrust::cuda_cub::tag, thrust::random_access_traversal_tag, thrust::device_reference&amp;lt;double&amp;gt;, long long&amp;gt;::operator[]' requested here
    return op(input&lt;N&gt;);
              ^
C:\nvcc\include\thrust\system\cuda\detail\cub\agent\agent_reduce.cuh:290:32: note: (skipping 15 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
            thread_aggregate = d_wrapped_in[block_offset + thread_offset];
                               ^
C:\nvcc\include\thrust\detail\transform_reduce.inl:47:10: note: in instantiation of function template specialization 'thrust::cuda_cub::transform_reduce&amp;lt;thrust::cuda_cub::tag, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  return transform_reduce(thrust::detail::derived_cast(thrust::detail::strip_const(exec)), first, last, unary_op, init, binary_op);
         ^
C:\nvcc\include\thrust\detail\transform_reduce.inl:67:18: note: in instantiation of function template specialization 'thrust::transform_reduce&amp;lt;thrust::cuda_cub::tag, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  return thrust::transform_reduce(select_system(system), first, last, unary_op, init, binary_op);
                 ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\include\cml\cml_blas.cuh:155:25: note: in instantiation of function template specialization 'thrust::transform_reduce&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  T nrm2 = sqrt(thrust::transform_reduce(strided_x.begin(), strided_x.end(),
                        ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:453:23: note: in instantiation of function template specialization 'cml::blas_nrm2&amp;lt;double&amp;gt;' requested here
                                + _rel_tol * cml::blas_nrm2(hdl, &amp;amp;z)
                                                  ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:989:16: note: in instantiation of member function 'h2o4gpu::H2O4GPU&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt;, h2o4gpu::ProjectorDirect&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt; &amp;gt; &amp;gt;::Solve' requested here
template class H2O4GPU&amp;lt;double, MatrixDense&amp;lt;double&amp;gt;,
               ^
C:\nvcc\include\thrust\device_ptr.h:37:28: note: template is declared here
template&amp;lt;typename T&amp;gt; class device_reference;
                           ^
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:4:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\solver\glm.h:77:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:14:
In file included from C:\nvcc\include\thrust\device_vector.h:25:
In file included from C:\nvcc\include\thrust\detail\vector_base.h:25:
In file included from C:\nvcc\include\thrust\iterator\detail\normal_iterator.h:25:
In file included from C:\nvcc\include\thrust\iterator\iterator_adaptor.h:36:
C:\nvcc\include\thrust\iterator\iterator_facade.h:310:14: error: implicit instantiation of undefined template 'thrust::device_reference&amp;lt;double&amp;gt;'
      return iterator_core_access::dereference(this-&amp;gt;derived());
             ^
C:\nvcc\include\thrust\device_ptr.h:37:28: note: template is declared here
template&amp;lt;typename T&amp;gt; class device_reference;
                           ^
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:4:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\solver\glm.h:77:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:14:
In file included from C:\nvcc\include\thrust\device_vector.h:25:
In file included from C:\nvcc\include\thrust\detail\vector_base.h:25:
In file included from C:\nvcc\include\thrust\iterator\detail\normal_iterator.h:25:
In file included from C:\nvcc\include\thrust\iterator\iterator_adaptor.h:36:
C:\nvcc\include\thrust\iterator\iterator_facade.h:126:39: error: implicit instantiation of undefined template 'thrust::device_reference&amp;lt;double&amp;gt;'
    static typename Facade::reference dereference(Facade const&amp;amp; f)
                                      ^
C:\nvcc\include\thrust\iterator\iterator_facade.h:310:36: note: in instantiation of function template specialization 'thrust::iterator_core_access::dereference&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;' requested here
      return iterator_core_access::dereference(this-&amp;gt;derived());
                                   ^
C:\nvcc\include\thrust\iterator\permutation_iterator.h:179:14: note: in instantiation of member function 'thrust::iterator_facade&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, double, thrust::cuda_cub::tag, thrust::random_access_traversal_tag, thrust::device_reference&amp;lt;double&amp;gt;, long long&amp;gt;::operator*' requested here
      return *(m_element_iterator + *this-&amp;gt;base());
             ^
C:\nvcc\include\thrust\iterator\iterator_facade.h:128:16: note: in instantiation of member function 'thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;::dereference' requested here
      return f.dereference();
               ^
C:\nvcc\include\thrust\iterator\iterator_facade.h:310:36: note: in instantiation of function template specialization 'thrust::iterator_core_access::dereference&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt; &amp;gt;' requested here
      return iterator_core_access::dereference(this-&amp;gt;derived());
                                   ^
C:\nvcc\include\thrust\iterator\iterator_facade.h:328:14: note: in instantiation of member function 'thrust::iterator_facade&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, double, thrust::cuda_cub::tag, thrust::random_access_traversal_tag, thrust::device_reference&amp;lt;double&amp;gt;, long long&amp;gt;::operator*' requested here
      return *(this-&amp;gt;derived() + n);
             ^
C:\nvcc\include\thrust\system\cuda\detail\util.h:311:15: note: (skipping 16 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
    return op(input&lt;N&gt;);
              ^
C:\nvcc\include\thrust\detail\transform_reduce.inl:47:10: note: in instantiation of function template specialization 'thrust::cuda_cub::transform_reduce&amp;lt;thrust::cuda_cub::tag, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  return transform_reduce(thrust::detail::derived_cast(thrust::detail::strip_const(exec)), first, last, unary_op, init, binary_op);
         ^
C:\nvcc\include\thrust\detail\transform_reduce.inl:67:18: note: in instantiation of function template specialization 'thrust::transform_reduce&amp;lt;thrust::cuda_cub::tag, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  return thrust::transform_reduce(select_system(system), first, last, unary_op, init, binary_op);
                 ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\include\cml\cml_blas.cuh:155:25: note: in instantiation of function template specialization 'thrust::transform_reduce&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  T nrm2 = sqrt(thrust::transform_reduce(strided_x.begin(), strided_x.end(),
                        ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:453:23: note: in instantiation of function template specialization 'cml::blas_nrm2&amp;lt;double&amp;gt;' requested here
                                + _rel_tol * cml::blas_nrm2(hdl, &amp;amp;z)
                                                  ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:989:16: note: in instantiation of member function 'h2o4gpu::H2O4GPU&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt;, h2o4gpu::ProjectorDirect&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt; &amp;gt; &amp;gt;::Solve' requested here
template class H2O4GPU&amp;lt;double, MatrixDense&amp;lt;double&amp;gt;,
               ^
C:\nvcc\include\thrust\device_ptr.h:37:28: note: template is declared here
template&amp;lt;typename T&amp;gt; class device_reference;
                           ^
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:4:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\solver\glm.h:77:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:14:
In file included from C:\nvcc\include\thrust\device_vector.h:25:
In file included from C:\nvcc\include\thrust\detail\vector_base.h:25:
In file included from C:\nvcc\include\thrust\iterator\detail\normal_iterator.h:25:
In file included from C:\nvcc\include\thrust\iterator\iterator_adaptor.h:36:
C:\nvcc\include\thrust\iterator\iterator_facade.h:128:16: error: implicit instantiation of undefined template 'thrust::device_reference&amp;lt;double&amp;gt;'
      return f.dereference();
               ^
C:\nvcc\include\thrust\device_ptr.h:37:28: note: template is declared here
template&amp;lt;typename T&amp;gt; class device_reference;
                           ^
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:4:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\solver\glm.h:77:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:14:
In file included from C:\nvcc\include\thrust\device_vector.h:25:
In file included from C:\nvcc\include\thrust\detail\vector_base.h:29:
In file included from C:\nvcc\include\thrust\detail\contiguous_storage.h:240:
C:\nvcc\include\thrust\detail\contiguous_storage.inl:159:11: error: implicit instantiation of undefined template 'thrust::reference&amp;lt;unsigned char, thrust::pointer&amp;lt;unsigned char, thrust::cuda_cub::tag, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default&amp;gt;'
  return &amp;amp;*m_begin;
          ^
C:\nvcc\include\thrust\system\cuda\detail\reduce.h:966:65: note: in instantiation of member function 'thrust::detail::contiguous_storage&amp;lt;unsigned char, thrust::detail::no_throw_allocator&amp;lt;thrust::detail::temporary_allocator&amp;lt;unsigned char, thrust::cuda_cub::tag&amp;gt; &amp;gt; &amp;gt;::data' requested here
  T* ret_ptr = thrust::detail::aligned_reinterpret_cast&amp;lt;T*&amp;gt;(tmp.data().get());
                                                                ^
C:\nvcc\include\thrust\system\cuda\detail\reduce.h:1017:38: note: in instantiation of function template specialization 'thrust::cuda_cub::detail::reduce_n_impl&amp;lt;thrust::cuda_cub::tag, thrust::cuda_cub::transform_input_iterator_t&amp;lt;double, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt; &amp;gt;, long long, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
    return thrust::cuda_cub::detail::reduce_n_impl(
                                     ^
C:\nvcc\include\thrust\system\cuda\detail\transform_reduce.h:58:20: note: in instantiation of function template specialization 'thrust::cuda_cub::reduce_n&amp;lt;thrust::cuda_cub::tag, thrust::cuda_cub::transform_input_iterator_t&amp;lt;double, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt; &amp;gt;, long long, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  return cuda_cub::reduce_n(policy,
                   ^
C:\nvcc\include\thrust\detail\transform_reduce.inl:47:10: note: in instantiation of function template specialization 'thrust::cuda_cub::transform_reduce&amp;lt;thrust::cuda_cub::tag, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  return transform_reduce(thrust::detail::derived_cast(thrust::detail::strip_const(exec)), first, last, unary_op, init, binary_op);
         ^
C:\nvcc\include\thrust\detail\transform_reduce.inl:67:18: note: in instantiation of function template specialization 'thrust::transform_reduce&amp;lt;thrust::cuda_cub::tag, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  return thrust::transform_reduce(select_system(system), first, last, unary_op, init, binary_op);
                 ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\include\cml\cml_blas.cuh:155:25: note: in instantiation of function template specialization 'thrust::transform_reduce&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  T nrm2 = sqrt(thrust::transform_reduce(strided_x.begin(), strided_x.end(),
                        ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:453:23: note: in instantiation of function template specialization 'cml::blas_nrm2&amp;lt;double&amp;gt;' requested here
                                + _rel_tol * cml::blas_nrm2(hdl, &amp;amp;z)
                                                  ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:989:16: note: in instantiation of member function 'h2o4gpu::H2O4GPU&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt;, h2o4gpu::ProjectorDirect&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt; &amp;gt; &amp;gt;::Solve' requested here
template class H2O4GPU&amp;lt;double, MatrixDense&amp;lt;double&amp;gt;,
               ^
C:\nvcc\include\thrust\detail\reference_forward_declaration.h:25:84: note: template is declared here
template&amp;lt;typename Element, typename Pointer, typename Derived = use_default&amp;gt; class reference;
                                                                                   ^
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:4:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\solver\glm.h:77:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:14:
In file included from C:\nvcc\include\thrust\device_vector.h:25:
In file included from C:\nvcc\include\thrust\detail\vector_base.h:25:
In file included from C:\nvcc\include\thrust\iterator\detail\normal_iterator.h:25:
In file included from C:\nvcc\include\thrust\iterator\iterator_adaptor.h:36:
C:\nvcc\include\thrust\iterator\iterator_facade.h:308:15: error: implicit instantiation of undefined template 'thrust::reference&amp;lt;unsigned char, thrust::pointer&amp;lt;unsigned char, thrust::cuda_cub::tag, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default&amp;gt;'
    reference operator*() const
              ^
C:\nvcc\include\thrust\detail\contiguous_storage.inl:159:11: note: in instantiation of member function 'thrust::iterator_facade&amp;lt;thrust::detail::normal_iterator&amp;lt;thrust::pointer&amp;lt;unsigned char, thrust::cuda_cub::tag, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, unsigned char, thrust::cuda_cub::tag, thrust::random_access_traversal_tag, thrust::reference&amp;lt;unsigned char, thrust::pointer&amp;lt;unsigned char, thrust::cuda_cub::tag, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default&amp;gt;, long long&amp;gt;::operator*' requested here
  return &amp;amp;*m_begin;
          ^
C:\nvcc\include\thrust\system\cuda\detail\reduce.h:966:65: note: in instantiation of member function 'thrust::detail::contiguous_storage&amp;lt;unsigned char, thrust::detail::no_throw_allocator&amp;lt;thrust::detail::temporary_allocator&amp;lt;unsigned char, thrust::cuda_cub::tag&amp;gt; &amp;gt; &amp;gt;::data' requested here
  T* ret_ptr = thrust::detail::aligned_reinterpret_cast&amp;lt;T*&amp;gt;(tmp.data().get());
                                                                ^
C:\nvcc\include\thrust\system\cuda\detail\reduce.h:1017:38: note: in instantiation of function template specialization 'thrust::cuda_cub::detail::reduce_n_impl&amp;lt;thrust::cuda_cub::tag, thrust::cuda_cub::transform_input_iterator_t&amp;lt;double, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt; &amp;gt;, long long, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
    return thrust::cuda_cub::detail::reduce_n_impl(
                                     ^
C:\nvcc\include\thrust\system\cuda\detail\transform_reduce.h:58:20: note: in instantiation of function template specialization 'thrust::cuda_cub::reduce_n&amp;lt;thrust::cuda_cub::tag, thrust::cuda_cub::transform_input_iterator_t&amp;lt;double, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt; &amp;gt;, long long, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  return cuda_cub::reduce_n(policy,
                   ^
C:\nvcc\include\thrust\detail\transform_reduce.inl:47:10: note: in instantiation of function template specialization 'thrust::cuda_cub::transform_reduce&amp;lt;thrust::cuda_cub::tag, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  return transform_reduce(thrust::detail::derived_cast(thrust::detail::strip_const(exec)), first, last, unary_op, init, binary_op);
         ^
C:\nvcc\include\thrust\detail\transform_reduce.inl:67:18: note: in instantiation of function template specialization 'thrust::transform_reduce&amp;lt;thrust::cuda_cub::tag, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  return thrust::transform_reduce(select_system(system), first, last, unary_op, init, binary_op);
                 ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\include\cml\cml_blas.cuh:155:25: note: in instantiation of function template specialization 'thrust::transform_reduce&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  T nrm2 = sqrt(thrust::transform_reduce(strided_x.begin(), strided_x.end(),
                        ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:453:23: note: in instantiation of function template specialization 'cml::blas_nrm2&amp;lt;double&amp;gt;' requested here
                                + _rel_tol * cml::blas_nrm2(hdl, &amp;amp;z)
                                                  ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:989:16: note: in instantiation of member function 'h2o4gpu::H2O4GPU&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt;, h2o4gpu::ProjectorDirect&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt; &amp;gt; &amp;gt;::Solve' requested here
template class H2O4GPU&amp;lt;double, MatrixDense&amp;lt;double&amp;gt;,
               ^
C:\nvcc\include\thrust\detail\reference_forward_declaration.h:25:84: note: template is declared here
template&amp;lt;typename Element, typename Pointer, typename Derived = use_default&amp;gt; class reference;
                                                                                   ^
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:4:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\solver\glm.h:77:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:14:
In file included from C:\nvcc\include\thrust\device_vector.h:25:
In file included from C:\nvcc\include\thrust\detail\vector_base.h:25:
In file included from C:\nvcc\include\thrust\iterator\detail\normal_iterator.h:25:
In file included from C:\nvcc\include\thrust\iterator\iterator_adaptor.h:36:
C:\nvcc\include\thrust\iterator\iterator_facade.h:310:14: error: implicit instantiation of undefined template 'thrust::reference&amp;lt;unsigned char, thrust::pointer&amp;lt;unsigned char, thrust::cuda_cub::tag, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default&amp;gt;'
      return iterator_core_access::dereference(this-&amp;gt;derived());
             ^
C:\nvcc\include\thrust\detail\reference_forward_declaration.h:25:84: note: template is declared here
template&amp;lt;typename Element, typename Pointer, typename Derived = use_default&amp;gt; class reference;
                                                                                   ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated when compiling for host.
Error while processing C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu.
dpct exited with code: -17 (Error: Cannot parse input file(s))&lt;/N&gt;&lt;/N&gt;&lt;/N&gt;&lt;/N&gt;&lt;/N&gt;&lt;/N&gt;&lt;/N&gt;&lt;/PRE&gt;

&lt;P&gt;Any help is appreciated.&lt;/P&gt;
&lt;P&gt;Gagan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jun 2020 11:33:05 GMT</pubDate>
    <dc:creator>Shukla__Gagandeep</dc:creator>
    <dc:date>2020-06-05T11:33:05Z</dc:date>
    <item>
      <title>dpct giving error in thrust files</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-giving-error-in-thrust-files/m-p/1185850#M452</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to convert &lt;A href="https://github.com/h2oai/h2o4gpu"&gt;h2o4gpu &lt;/A&gt;code using dpct and it is giving following errors while parsing thrust files. Is there any solution to these errors.&lt;/P&gt;&lt;P&gt;File I am trying to convert is&amp;nbsp;&lt;A href="https://github.com/h2oai/h2o4gpu/blob/master/src/gpu/h2o4gpuglm.cu"&gt;src/gpu/h2o4gpuglm.cu&lt;/A&gt;. Though I received similar in many other files that include thrust library files.&lt;/P&gt;
&lt;PRE class="brush:; class-name:dark;"&gt;C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu&amp;gt;dpct --cuda-include-path="C:\nvcc\include" --extra-arg="-I.\..\include" --extra-arg="-I.\include"  --extra-arg="-D_CRT_SECURE_NO_WARNINGS" --out-root=dpct h2o4gpuglm.cu
NOTE: Could not auto-detect compilation database for file 'h2o4gpuglm.cu' in 'C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu' or any parent directory.
Processing: C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:27:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\include\cuda_utils.h:7:
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\include\cuda_utils2.h:42:9: warning: 'CUDACHECK' macro redefined [-Wmacro-redefined]
#define CUDACHECK(cmd) \
        ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\include\cuda_utils2.h:9:9: note: previous definition is here
#define CUDACHECK(cmd)                                        \
        ^
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:4:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\solver\glm.h:77:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:14:
In file included from C:\nvcc\include\thrust\device_vector.h:25:
In file included from C:\nvcc\include\thrust\detail\vector_base.h:29:
In file included from C:\nvcc\include\thrust\detail\contiguous_storage.h:240:
In file included from C:\nvcc\include\thrust\detail\contiguous_storage.inl:22:
In file included from C:\nvcc\include\thrust\detail\allocator\copy_construct_range.h:46:
In file included from C:\nvcc\include\thrust\detail\allocator\copy_construct_range.inl:22:
In file included from C:\nvcc\include\thrust\tuple.h:34:
C:\nvcc\include\thrust\detail\tuple.inl:256:20: error: implicit instantiation of undefined template 'thrust::device_reference&amp;lt;const double&amp;gt;'
  stored_head_type head;
                   ^
C:\nvcc\include\thrust\tuple.h:198:12: note: in instantiation of template class 'thrust::detail::cons&amp;lt;thrust::device_reference&amp;lt;const double&amp;gt;, thrust::detail::cons&amp;lt;thrust::device_reference&amp;lt;const double&amp;gt;, thrust::null_type&amp;gt; &amp;gt;' requested here
    public detail::map_tuple_to_cons&amp;lt;T0, T1, T2, T3, T4, T5, T6, T7, T8, T9&amp;gt;::type
           ^
C:\nvcc\include\thrust\tuple.h:90:52: note: in instantiation of template class 'thrust::tuple&amp;lt;thrust::device_reference&amp;lt;const double&amp;gt;, thrust::device_reference&amp;lt;const double&amp;gt;, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type&amp;gt;' requested here
  static const int value = 1 + tuple_size&amp;lt;typename T::tail_type&amp;gt;::value;
                                                   ^
C:\nvcc\include\thrust\iterator\detail\zip_iterator_base.h:299:14: note: in instantiation of template class 'thrust::tuple_size&amp;lt;thrust::tuple&amp;lt;thrust::device_reference&amp;lt;const double&amp;gt;, thrust::device_reference&amp;lt;const double&amp;gt;, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type&amp;gt; &amp;gt;' requested here
        (i &amp;lt; tuple_size&amp;lt;Tuple&amp;gt;::value),
             ^
C:\nvcc\include\thrust\iterator\detail\zip_iterator_base.h:309:20: note: in instantiation of template class 'thrust::detail::zip_iterator_base_ns::tuple_elements_helper&amp;lt;0, thrust::tuple&amp;lt;thrust::device_reference&amp;lt;const double&amp;gt;, thrust::device_reference&amp;lt;const double&amp;gt;, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type&amp;gt; &amp;gt;' requested here
  typedef typename tuple_elements_helper&amp;lt;0,Tuple&amp;gt;::type T0;
                   ^
C:\nvcc\include\thrust\iterator\detail\zip_iterator_base.h:336:14: note: in instantiation of template class 'thrust::detail::zip_iterator_base_ns::tuple_elements&amp;lt;thrust::tuple&amp;lt;thrust::device_reference&amp;lt;const double&amp;gt;, thrust::device_reference&amp;lt;const double&amp;gt;, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type&amp;gt; &amp;gt;' requested here
    typename elements::T0,
             ^
C:\nvcc\include\thrust\iterator\detail\zip_iterator_base.h:365:44: note: in instantiation of template class 'thrust::detail::zip_iterator_base_ns::tuple_of_iterator_references&amp;lt;thrust::tuple&amp;lt;thrust::device_ptr&amp;lt;const double&amp;gt;, thrust::device_ptr&amp;lt;const double&amp;gt;, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type&amp;gt; &amp;gt;' requested here
    typedef typename zip_iterator_base_ns::tuple_of_iterator_references&amp;lt;IteratorTuple&amp;gt;::type reference;
                                           ^
C:\nvcc\include\thrust\iterator\zip_iterator.h:141:22: note: in instantiation of template class 'thrust::detail::zip_iterator_base&amp;lt;thrust::tuple&amp;lt;thrust::device_ptr&amp;lt;const double&amp;gt;, thrust::device_ptr&amp;lt;const double&amp;gt;, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type&amp;gt; &amp;gt;' requested here
    : public detail::zip_iterator_base&amp;lt;IteratorTuple&amp;gt;::type
                     ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:729:7: note: in instantiation of template class 'thrust::zip_iterator&amp;lt;thrust::tuple&amp;lt;thrust::device_ptr&amp;lt;const double&amp;gt;, thrust::device_ptr&amp;lt;const double&amp;gt;, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type&amp;gt; &amp;gt;' requested here
      thrust::make_zip_iterator(thrust::make_tuple(
      ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:367:4: note: in instantiation of function template specialization 'ProjSubgradEval&amp;lt;double&amp;gt;' requested here
                        ProjSubgradEval(g_gpu, xprev.data, x.data, xtemp.data);
                        ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:989:16: note: in instantiation of member function 'h2o4gpu::H2O4GPU&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt;, h2o4gpu::ProjectorDirect&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt; &amp;gt; &amp;gt;::Solve' requested here
template class H2O4GPU&amp;lt;double, MatrixDense&amp;lt;double&amp;gt;,
               ^
C:\nvcc\include\thrust\device_ptr.h:37:28: note: template is declared here
template&amp;lt;typename T&amp;gt; class device_reference;
                           ^
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:4:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\solver\glm.h:77:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:14:
In file included from C:\nvcc\include\thrust\device_vector.h:25:
In file included from C:\nvcc\include\thrust\detail\vector_base.h:29:
In file included from C:\nvcc\include\thrust\detail\contiguous_storage.h:240:
In file included from C:\nvcc\include\thrust\detail\contiguous_storage.inl:22:
In file included from C:\nvcc\include\thrust\detail\allocator\copy_construct_range.h:46:
In file included from C:\nvcc\include\thrust\detail\allocator\copy_construct_range.inl:22:
In file included from C:\nvcc\include\thrust\tuple.h:34:
C:\nvcc\include\thrust\detail\tuple.inl:373:20: error: implicit instantiation of undefined template 'thrust::device_reference&amp;lt;const double&amp;gt;'
  stored_head_type head;
                   ^
C:\nvcc\include\thrust\detail\tuple.inl:257:13: note: in instantiation of template class 'thrust::detail::cons&amp;lt;thrust::device_reference&amp;lt;const double&amp;gt;, thrust::null_type&amp;gt;' requested here
  tail_type tail;
            ^
C:\nvcc\include\thrust\tuple.h:198:12: note: in instantiation of template class 'thrust::detail::cons&amp;lt;thrust::device_reference&amp;lt;const double&amp;gt;, thrust::detail::cons&amp;lt;thrust::device_reference&amp;lt;const double&amp;gt;, thrust::null_type&amp;gt; &amp;gt;' requested here
    public detail::map_tuple_to_cons&amp;lt;T0, T1, T2, T3, T4, T5, T6, T7, T8, T9&amp;gt;::type
           ^
C:\nvcc\include\thrust\tuple.h:90:52: note: in instantiation of template class 'thrust::tuple&amp;lt;thrust::device_reference&amp;lt;const double&amp;gt;, thrust::device_reference&amp;lt;const double&amp;gt;, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type&amp;gt;' requested here
  static const int value = 1 + tuple_size&amp;lt;typename T::tail_type&amp;gt;::value;
                                                   ^
C:\nvcc\include\thrust\iterator\detail\zip_iterator_base.h:299:14: note: in instantiation of template class 'thrust::tuple_size&amp;lt;thrust::tuple&amp;lt;thrust::device_reference&amp;lt;const double&amp;gt;, thrust::device_reference&amp;lt;const double&amp;gt;, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type&amp;gt; &amp;gt;' requested here
        (i &amp;lt; tuple_size&amp;lt;Tuple&amp;gt;::value),
             ^
C:\nvcc\include\thrust\iterator\detail\zip_iterator_base.h:309:20: note: in instantiation of template class 'thrust::detail::zip_iterator_base_ns::tuple_elements_helper&amp;lt;0, thrust::tuple&amp;lt;thrust::device_reference&amp;lt;const double&amp;gt;, thrust::device_reference&amp;lt;const double&amp;gt;, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type&amp;gt; &amp;gt;' requested here
  typedef typename tuple_elements_helper&amp;lt;0,Tuple&amp;gt;::type T0;
                   ^
C:\nvcc\include\thrust\iterator\detail\zip_iterator_base.h:336:14: note: (skipping 1 context in backtrace; use -ftemplate-backtrace-limit=0 to see all)
    typename elements::T0,
             ^
C:\nvcc\include\thrust\iterator\detail\zip_iterator_base.h:365:44: note: in instantiation of template class 'thrust::detail::zip_iterator_base_ns::tuple_of_iterator_references&amp;lt;thrust::tuple&amp;lt;thrust::device_ptr&amp;lt;const double&amp;gt;, thrust::device_ptr&amp;lt;const double&amp;gt;, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type&amp;gt; &amp;gt;' requested here
    typedef typename zip_iterator_base_ns::tuple_of_iterator_references&amp;lt;IteratorTuple&amp;gt;::type reference;
                                           ^
C:\nvcc\include\thrust\iterator\zip_iterator.h:141:22: note: in instantiation of template class 'thrust::detail::zip_iterator_base&amp;lt;thrust::tuple&amp;lt;thrust::device_ptr&amp;lt;const double&amp;gt;, thrust::device_ptr&amp;lt;const double&amp;gt;, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type&amp;gt; &amp;gt;' requested here
    : public detail::zip_iterator_base&amp;lt;IteratorTuple&amp;gt;::type
                     ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:729:7: note: in instantiation of template class 'thrust::zip_iterator&amp;lt;thrust::tuple&amp;lt;thrust::device_ptr&amp;lt;const double&amp;gt;, thrust::device_ptr&amp;lt;const double&amp;gt;, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type&amp;gt; &amp;gt;' requested here
      thrust::make_zip_iterator(thrust::make_tuple(
      ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:367:4: note: in instantiation of function template specialization 'ProjSubgradEval&amp;lt;double&amp;gt;' requested here
                        ProjSubgradEval(g_gpu, xprev.data, x.data, xtemp.data);
                        ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:989:16: note: in instantiation of member function 'h2o4gpu::H2O4GPU&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt;, h2o4gpu::ProjectorDirect&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt; &amp;gt; &amp;gt;::Solve' requested here
template class H2O4GPU&amp;lt;double, MatrixDense&amp;lt;double&amp;gt;,
               ^
C:\nvcc\include\thrust\device_ptr.h:37:28: note: template is declared here
template&amp;lt;typename T&amp;gt; class device_reference;
                           ^
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:4:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\solver\glm.h:77:
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:700:7: error: no matching conversion for functional-style cast from 'double' to 'ProxEvalF&amp;lt;double&amp;gt;'
      ProxEvalF&amp;lt;T&amp;gt;(rho));
      ^~~~~~~~~~~~~~~~
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:443:3: note: in instantiation of function template specialization 'ProxEval&amp;lt;double&amp;gt;' requested here
                ProxEval(g_gpu, _rho, x.data, x12.data); // Evaluate g(rho,x)-&amp;gt;x12 (x^{1/2} in paper)
                ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:989:16: note: in instantiation of member function 'h2o4gpu::H2O4GPU&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt;, h2o4gpu::ProjectorDirect&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt; &amp;gt; &amp;gt;::Solve' requested here
template class H2O4GPU&amp;lt;double, MatrixDense&amp;lt;double&amp;gt;,
               ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:687:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'double' to 'const ProxEvalF&amp;lt;double&amp;gt;' for 1st argument
struct ProxEvalF : thrust::binary_function&amp;lt;FunctionObj&amp;lt;T&amp;gt;, T, T&amp;gt; {
       ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:687:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'double' to 'ProxEvalF&amp;lt;double&amp;gt;' for 1st argument
struct ProxEvalF : thrust::binary_function&amp;lt;FunctionObj&amp;lt;T&amp;gt;, T, T&amp;gt; {
       ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:689:14: note: candidate constructor not viable: call to __device__ function from __host__ function
  __device__ ProxEvalF(T rho) : rho(rho) { }
             ^
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:4:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\solver\glm.h:77:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:14:
In file included from C:\nvcc\include\thrust\device_vector.h:25:
In file included from C:\nvcc\include\thrust\detail\vector_base.h:29:
In file included from C:\nvcc\include\thrust\detail\contiguous_storage.h:240:
In file included from C:\nvcc\include\thrust\detail\contiguous_storage.inl:22:
In file included from C:\nvcc\include\thrust\detail\allocator\copy_construct_range.h:46:
In file included from C:\nvcc\include\thrust\detail\allocator\copy_construct_range.inl:26:
In file included from C:\nvcc\include\thrust\for_each.h:279:
In file included from C:\nvcc\include\thrust\detail\for_each.inl:27:
In file included from C:\nvcc\include\thrust\system\detail\adl\for_each.h:42:
In file included from C:\nvcc\include\thrust\system\cuda\detail\for_each.h:34:
C:\nvcc\include\thrust\system\cuda\detail\util.h:311:15: error: implicit instantiation of undefined template 'thrust::device_reference&amp;lt;double&amp;gt;'
    return op(input&lt;N&gt;);
              ^
C:\nvcc\include\thrust\system\cuda\detail\cub\agent\agent_reduce.cuh:290:32: note: in instantiation of member function 'thrust::cuda_cub::transform_input_iterator_t&amp;lt;double, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt; &amp;gt;::operator[]' requested here
            thread_aggregate = d_wrapped_in[block_offset + thread_offset];
                               ^
C:\nvcc\include\thrust\system\cuda\detail\cub\agent\agent_reduce.cuh:322:13: note: in instantiation of function template specialization 'thrust::cuda_cub::cub::AgentReduce&amp;lt;thrust::cuda_cub::cub::AgentReducePolicy&amp;lt;64, 8, 2, thrust::cuda_cub::cub::BLOCK_REDUCE_RAKING, thrust::cuda_cub::cub::LOAD_DEFAULT&amp;gt;, thrust::cuda_cub::transform_input_iterator_t&amp;lt;double, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt; &amp;gt;, double *, int, thrust::plus&amp;lt;double&amp;gt; &amp;gt;::ConsumeTile&amp;lt;1, 0&amp;gt;' requested here
            ConsumeTile&amp;lt;true&amp;gt;(thread_aggregate, even_share.block_offset, valid_items, Int2Type&amp;lt;false&amp;gt;(), can_vectorize);
            ^
C:\nvcc\include\thrust\system\cuda\detail\cub\agent\agent_reduce.cuh:360:13: note: in instantiation of function template specialization 'thrust::cuda_cub::cub::AgentReduce&amp;lt;thrust::cuda_cub::cub::AgentReducePolicy&amp;lt;64, 8, 2, thrust::cuda_cub::cub::BLOCK_REDUCE_RAKING, thrust::cuda_cub::cub::LOAD_DEFAULT&amp;gt;, thrust::cuda_cub::transform_input_iterator_t&amp;lt;double, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt; &amp;gt;, double *, int, thrust::plus&amp;lt;double&amp;gt; &amp;gt;::ConsumeRange&amp;lt;0&amp;gt;' requested here
            ConsumeRange(even_share, Int2Type&amp;lt;true &amp;amp;&amp;amp; ATTEMPT_VECTORIZATION&amp;gt;()) :
            ^
C:\nvcc\include\thrust\system\cuda\detail\cub\device\dispatch\dispatch_reduce.cuh:141:78: note: in instantiation of member function 'thrust::cuda_cub::cub::AgentReduce&amp;lt;thrust::cuda_cub::cub::AgentReducePolicy&amp;lt;64, 8, 2, thrust::cuda_cub::cub::BLOCK_REDUCE_RAKING, thrust::cuda_cub::cub::LOAD_DEFAULT&amp;gt;, thrust::cuda_cub::transform_input_iterator_t&amp;lt;double, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt; &amp;gt;, double *, int, thrust::plus&amp;lt;double&amp;gt; &amp;gt;::ConsumeRange' requested here
    OutputT block_aggregate = AgentReduceT(temp_storage, d_in, reduction_op).ConsumeRange(
                                                                             ^
C:\nvcc\include\thrust\system\cuda\detail\cub\device\dispatch\dispatch_reduce.cuh:599:17: note: in instantiation of function template specialization 'thrust::cuda_cub::cub::DeviceReduceSingleTileKernel&amp;lt;thrust::cuda_cub::cub::DeviceReducePolicy&amp;lt;double, int, thrust::plus&amp;lt;double&amp;gt; &amp;gt;::Policy600, thrust::cuda_cub::transform_input_iterator_t&amp;lt;double, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt; &amp;gt;, double *, int, thrust::plus&amp;lt;double&amp;gt;, double&amp;gt;' requested here
                DeviceReduceSingleTileKernel&amp;lt;MaxPolicyT, InputIteratorT, OutputIteratorT, OffsetT, ReductionOpT, OutputT&amp;gt;);
                ^
C:/nvcc/include\thrust/system/cuda/detail/cub/device/dispatch/../../util_device.cuh:332:28: note: (skipping 10 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
        return op.template Invoke&amp;lt;PolicyT&amp;gt;();
                           ^
C:\nvcc\include\thrust\detail\transform_reduce.inl:47:10: note: in instantiation of function template specialization 'thrust::cuda_cub::transform_reduce&amp;lt;thrust::cuda_cub::tag, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  return transform_reduce(thrust::detail::derived_cast(thrust::detail::strip_const(exec)), first, last, unary_op, init, binary_op);
         ^
C:\nvcc\include\thrust\detail\transform_reduce.inl:67:18: note: in instantiation of function template specialization 'thrust::transform_reduce&amp;lt;thrust::cuda_cub::tag, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  return thrust::transform_reduce(select_system(system), first, last, unary_op, init, binary_op);
                 ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\include\cml\cml_blas.cuh:155:25: note: in instantiation of function template specialization 'thrust::transform_reduce&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  T nrm2 = sqrt(thrust::transform_reduce(strided_x.begin(), strided_x.end(),
                        ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:453:23: note: in instantiation of function template specialization 'cml::blas_nrm2&amp;lt;double&amp;gt;' requested here
                                + _rel_tol * cml::blas_nrm2(hdl, &amp;amp;z)
                                                  ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:989:16: note: in instantiation of member function 'h2o4gpu::H2O4GPU&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt;, h2o4gpu::ProjectorDirect&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt; &amp;gt; &amp;gt;::Solve' requested here
template class H2O4GPU&amp;lt;double, MatrixDense&amp;lt;double&amp;gt;,
               ^
C:\nvcc\include\thrust\device_ptr.h:37:28: note: template is declared here
template&amp;lt;typename T&amp;gt; class device_reference;
                           ^
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:4:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\solver\glm.h:77:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:14:
In file included from C:\nvcc\include\thrust\device_vector.h:25:
In file included from C:\nvcc\include\thrust\detail\vector_base.h:25:
In file included from C:\nvcc\include\thrust\iterator\detail\normal_iterator.h:25:
In file included from C:\nvcc\include\thrust\iterator\iterator_adaptor.h:36:
C:\nvcc\include\thrust\iterator\iterator_facade.h:326:15: error: implicit instantiation of undefined template 'thrust::device_reference&amp;lt;double&amp;gt;'
    reference operator[](difference_type n) const
              ^
C:\nvcc\include\thrust\system\cuda\detail\util.h:311:15: note: in instantiation of member function 'thrust::iterator_facade&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, double, thrust::cuda_cub::tag, thrust::random_access_traversal_tag, thrust::device_reference&amp;lt;double&amp;gt;, long long&amp;gt;::operator[]' requested here
    return op(input&lt;N&gt;);
              ^
C:\nvcc\include\thrust\system\cuda\detail\cub\agent\agent_reduce.cuh:290:32: note: in instantiation of member function 'thrust::cuda_cub::transform_input_iterator_t&amp;lt;double, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt; &amp;gt;::operator[]' requested here
            thread_aggregate = d_wrapped_in[block_offset + thread_offset];
                               ^
C:\nvcc\include\thrust\system\cuda\detail\cub\agent\agent_reduce.cuh:322:13: note: in instantiation of function template specialization 'thrust::cuda_cub::cub::AgentReduce&amp;lt;thrust::cuda_cub::cub::AgentReducePolicy&amp;lt;64, 8, 2, thrust::cuda_cub::cub::BLOCK_REDUCE_RAKING, thrust::cuda_cub::cub::LOAD_DEFAULT&amp;gt;, thrust::cuda_cub::transform_input_iterator_t&amp;lt;double, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt; &amp;gt;, double *, int, thrust::plus&amp;lt;double&amp;gt; &amp;gt;::ConsumeTile&amp;lt;1, 0&amp;gt;' requested here
            ConsumeTile&amp;lt;true&amp;gt;(thread_aggregate, even_share.block_offset, valid_items, Int2Type&amp;lt;false&amp;gt;(), can_vectorize);
            ^
C:\nvcc\include\thrust\system\cuda\detail\cub\agent\agent_reduce.cuh:360:13: note: in instantiation of function template specialization 'thrust::cuda_cub::cub::AgentReduce&amp;lt;thrust::cuda_cub::cub::AgentReducePolicy&amp;lt;64, 8, 2, thrust::cuda_cub::cub::BLOCK_REDUCE_RAKING, thrust::cuda_cub::cub::LOAD_DEFAULT&amp;gt;, thrust::cuda_cub::transform_input_iterator_t&amp;lt;double, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt; &amp;gt;, double *, int, thrust::plus&amp;lt;double&amp;gt; &amp;gt;::ConsumeRange&amp;lt;0&amp;gt;' requested here
            ConsumeRange(even_share, Int2Type&amp;lt;true &amp;amp;&amp;amp; ATTEMPT_VECTORIZATION&amp;gt;()) :
            ^
C:\nvcc\include\thrust\system\cuda\detail\cub\device\dispatch\dispatch_reduce.cuh:141:78: note: in instantiation of member function 'thrust::cuda_cub::cub::AgentReduce&amp;lt;thrust::cuda_cub::cub::AgentReducePolicy&amp;lt;64, 8, 2, thrust::cuda_cub::cub::BLOCK_REDUCE_RAKING, thrust::cuda_cub::cub::LOAD_DEFAULT&amp;gt;, thrust::cuda_cub::transform_input_iterator_t&amp;lt;double, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt; &amp;gt;, double *, int, thrust::plus&amp;lt;double&amp;gt; &amp;gt;::ConsumeRange' requested here
    OutputT block_aggregate = AgentReduceT(temp_storage, d_in, reduction_op).ConsumeRange(
                                                                             ^
C:\nvcc\include\thrust\system\cuda\detail\cub\device\dispatch\dispatch_reduce.cuh:599:17: note: (skipping 11 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
                DeviceReduceSingleTileKernel&amp;lt;MaxPolicyT, InputIteratorT, OutputIteratorT, OffsetT, ReductionOpT, OutputT&amp;gt;);
                ^
C:\nvcc\include\thrust\detail\transform_reduce.inl:47:10: note: in instantiation of function template specialization 'thrust::cuda_cub::transform_reduce&amp;lt;thrust::cuda_cub::tag, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  return transform_reduce(thrust::detail::derived_cast(thrust::detail::strip_const(exec)), first, last, unary_op, init, binary_op);
         ^
C:\nvcc\include\thrust\detail\transform_reduce.inl:67:18: note: in instantiation of function template specialization 'thrust::transform_reduce&amp;lt;thrust::cuda_cub::tag, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  return thrust::transform_reduce(select_system(system), first, last, unary_op, init, binary_op);
                 ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\include\cml\cml_blas.cuh:155:25: note: in instantiation of function template specialization 'thrust::transform_reduce&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  T nrm2 = sqrt(thrust::transform_reduce(strided_x.begin(), strided_x.end(),
                        ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:453:23: note: in instantiation of function template specialization 'cml::blas_nrm2&amp;lt;double&amp;gt;' requested here
                                + _rel_tol * cml::blas_nrm2(hdl, &amp;amp;z)
                                                  ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:989:16: note: in instantiation of member function 'h2o4gpu::H2O4GPU&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt;, h2o4gpu::ProjectorDirect&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt; &amp;gt; &amp;gt;::Solve' requested here
template class H2O4GPU&amp;lt;double, MatrixDense&amp;lt;double&amp;gt;,
               ^
C:\nvcc\include\thrust\device_ptr.h:37:28: note: template is declared here
template&amp;lt;typename T&amp;gt; class device_reference;
                           ^
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:4:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\solver\glm.h:77:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:14:
In file included from C:\nvcc\include\thrust\device_vector.h:25:
In file included from C:\nvcc\include\thrust\detail\vector_base.h:25:
In file included from C:\nvcc\include\thrust\iterator\detail\normal_iterator.h:25:
In file included from C:\nvcc\include\thrust\iterator\iterator_adaptor.h:36:
C:\nvcc\include\thrust\iterator\iterator_facade.h:328:14: error: implicit instantiation of undefined template 'thrust::device_reference&amp;lt;double&amp;gt;'
      return *(this-&amp;gt;derived() + n);
             ^
C:\nvcc\include\thrust\device_ptr.h:37:28: note: template is declared here
template&amp;lt;typename T&amp;gt; class device_reference;
                           ^
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:4:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\solver\glm.h:77:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:14:
In file included from C:\nvcc\include\thrust\device_vector.h:25:
In file included from C:\nvcc\include\thrust\detail\vector_base.h:25:
In file included from C:\nvcc\include\thrust\iterator\detail\normal_iterator.h:25:
In file included from C:\nvcc\include\thrust\iterator\iterator_adaptor.h:36:
C:\nvcc\include\thrust\iterator\iterator_facade.h:308:15: error: implicit instantiation of undefined template 'thrust::device_reference&amp;lt;double&amp;gt;'
    reference operator*() const
              ^
C:\nvcc\include\thrust\iterator\iterator_facade.h:328:14: note: in instantiation of member function 'thrust::iterator_facade&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, double, thrust::cuda_cub::tag, thrust::random_access_traversal_tag, thrust::device_reference&amp;lt;double&amp;gt;, long long&amp;gt;::operator*' requested here
      return *(this-&amp;gt;derived() + n);
             ^
C:\nvcc\include\thrust\system\cuda\detail\util.h:311:15: note: in instantiation of member function 'thrust::iterator_facade&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, double, thrust::cuda_cub::tag, thrust::random_access_traversal_tag, thrust::device_reference&amp;lt;double&amp;gt;, long long&amp;gt;::operator[]' requested here
    return op(input&lt;N&gt;);
              ^
C:\nvcc\include\thrust\system\cuda\detail\cub\agent\agent_reduce.cuh:290:32: note: in instantiation of member function 'thrust::cuda_cub::transform_input_iterator_t&amp;lt;double, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt; &amp;gt;::operator[]' requested here
            thread_aggregate = d_wrapped_in[block_offset + thread_offset];
                               ^
C:\nvcc\include\thrust\system\cuda\detail\cub\agent\agent_reduce.cuh:322:13: note: in instantiation of function template specialization 'thrust::cuda_cub::cub::AgentReduce&amp;lt;thrust::cuda_cub::cub::AgentReducePolicy&amp;lt;64, 8, 2, thrust::cuda_cub::cub::BLOCK_REDUCE_RAKING, thrust::cuda_cub::cub::LOAD_DEFAULT&amp;gt;, thrust::cuda_cub::transform_input_iterator_t&amp;lt;double, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt; &amp;gt;, double *, int, thrust::plus&amp;lt;double&amp;gt; &amp;gt;::ConsumeTile&amp;lt;1, 0&amp;gt;' requested here
            ConsumeTile&amp;lt;true&amp;gt;(thread_aggregate, even_share.block_offset, valid_items, Int2Type&amp;lt;false&amp;gt;(), can_vectorize);
            ^
C:\nvcc\include\thrust\system\cuda\detail\cub\agent\agent_reduce.cuh:360:13: note: in instantiation of function template specialization 'thrust::cuda_cub::cub::AgentReduce&amp;lt;thrust::cuda_cub::cub::AgentReducePolicy&amp;lt;64, 8, 2, thrust::cuda_cub::cub::BLOCK_REDUCE_RAKING, thrust::cuda_cub::cub::LOAD_DEFAULT&amp;gt;, thrust::cuda_cub::transform_input_iterator_t&amp;lt;double, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt; &amp;gt;, double *, int, thrust::plus&amp;lt;double&amp;gt; &amp;gt;::ConsumeRange&amp;lt;0&amp;gt;' requested here
            ConsumeRange(even_share, Int2Type&amp;lt;true &amp;amp;&amp;amp; ATTEMPT_VECTORIZATION&amp;gt;()) :
            ^
C:\nvcc\include\thrust\system\cuda\detail\cub\device\dispatch\dispatch_reduce.cuh:141:78: note: (skipping 12 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
    OutputT block_aggregate = AgentReduceT(temp_storage, d_in, reduction_op).ConsumeRange(
                                                                             ^
C:\nvcc\include\thrust\detail\transform_reduce.inl:47:10: note: in instantiation of function template specialization 'thrust::cuda_cub::transform_reduce&amp;lt;thrust::cuda_cub::tag, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  return transform_reduce(thrust::detail::derived_cast(thrust::detail::strip_const(exec)), first, last, unary_op, init, binary_op);
         ^
C:\nvcc\include\thrust\detail\transform_reduce.inl:67:18: note: in instantiation of function template specialization 'thrust::transform_reduce&amp;lt;thrust::cuda_cub::tag, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  return thrust::transform_reduce(select_system(system), first, last, unary_op, init, binary_op);
                 ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\include\cml\cml_blas.cuh:155:25: note: in instantiation of function template specialization 'thrust::transform_reduce&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  T nrm2 = sqrt(thrust::transform_reduce(strided_x.begin(), strided_x.end(),
                        ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:453:23: note: in instantiation of function template specialization 'cml::blas_nrm2&amp;lt;double&amp;gt;' requested here
                                + _rel_tol * cml::blas_nrm2(hdl, &amp;amp;z)
                                                  ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:989:16: note: in instantiation of member function 'h2o4gpu::H2O4GPU&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt;, h2o4gpu::ProjectorDirect&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt; &amp;gt; &amp;gt;::Solve' requested here
template class H2O4GPU&amp;lt;double, MatrixDense&amp;lt;double&amp;gt;,
               ^
C:\nvcc\include\thrust\device_ptr.h:37:28: note: template is declared here
template&amp;lt;typename T&amp;gt; class device_reference;
                           ^
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:4:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\solver\glm.h:77:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:14:
In file included from C:\nvcc\include\thrust\device_vector.h:25:
In file included from C:\nvcc\include\thrust\detail\vector_base.h:25:
In file included from C:\nvcc\include\thrust\iterator\detail\normal_iterator.h:25:
In file included from C:\nvcc\include\thrust\iterator\iterator_adaptor.h:36:
C:\nvcc\include\thrust\iterator\iterator_facade.h:310:14: error: implicit instantiation of undefined template 'thrust::device_reference&amp;lt;double&amp;gt;'
      return iterator_core_access::dereference(this-&amp;gt;derived());
             ^
C:\nvcc\include\thrust\device_ptr.h:37:28: note: template is declared here
template&amp;lt;typename T&amp;gt; class device_reference;
                           ^
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:4:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\solver\glm.h:77:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:14:
In file included from C:\nvcc\include\thrust\device_vector.h:25:
In file included from C:\nvcc\include\thrust\detail\vector_base.h:25:
In file included from C:\nvcc\include\thrust\iterator\detail\normal_iterator.h:25:
In file included from C:\nvcc\include\thrust\iterator\iterator_adaptor.h:36:
C:\nvcc\include\thrust\iterator\iterator_facade.h:126:39: error: implicit instantiation of undefined template 'thrust::device_reference&amp;lt;double&amp;gt;'
    static typename Facade::reference dereference(Facade const&amp;amp; f)
                                      ^
C:\nvcc\include\thrust\iterator\iterator_facade.h:310:36: note: in instantiation of function template specialization 'thrust::iterator_core_access::dereference&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt; &amp;gt;' requested here
      return iterator_core_access::dereference(this-&amp;gt;derived());
                                   ^
C:\nvcc\include\thrust\iterator\iterator_facade.h:328:14: note: in instantiation of member function 'thrust::iterator_facade&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, double, thrust::cuda_cub::tag, thrust::random_access_traversal_tag, thrust::device_reference&amp;lt;double&amp;gt;, long long&amp;gt;::operator*' requested here
      return *(this-&amp;gt;derived() + n);
             ^
C:\nvcc\include\thrust\system\cuda\detail\util.h:311:15: note: in instantiation of member function 'thrust::iterator_facade&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, double, thrust::cuda_cub::tag, thrust::random_access_traversal_tag, thrust::device_reference&amp;lt;double&amp;gt;, long long&amp;gt;::operator[]' requested here
    return op(input&lt;N&gt;);
              ^
C:\nvcc\include\thrust\system\cuda\detail\cub\agent\agent_reduce.cuh:290:32: note: in instantiation of member function 'thrust::cuda_cub::transform_input_iterator_t&amp;lt;double, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt; &amp;gt;::operator[]' requested here
            thread_aggregate = d_wrapped_in[block_offset + thread_offset];
                               ^
C:\nvcc\include\thrust\system\cuda\detail\cub\agent\agent_reduce.cuh:322:13: note: in instantiation of function template specialization 'thrust::cuda_cub::cub::AgentReduce&amp;lt;thrust::cuda_cub::cub::AgentReducePolicy&amp;lt;64, 8, 2, thrust::cuda_cub::cub::BLOCK_REDUCE_RAKING, thrust::cuda_cub::cub::LOAD_DEFAULT&amp;gt;, thrust::cuda_cub::transform_input_iterator_t&amp;lt;double, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt; &amp;gt;, double *, int, thrust::plus&amp;lt;double&amp;gt; &amp;gt;::ConsumeTile&amp;lt;1, 0&amp;gt;' requested here
            ConsumeTile&amp;lt;true&amp;gt;(thread_aggregate, even_share.block_offset, valid_items, Int2Type&amp;lt;false&amp;gt;(), can_vectorize);
            ^
C:\nvcc\include\thrust\system\cuda\detail\cub\agent\agent_reduce.cuh:360:13: note: (skipping 13 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
            ConsumeRange(even_share, Int2Type&amp;lt;true &amp;amp;&amp;amp; ATTEMPT_VECTORIZATION&amp;gt;()) :
            ^
C:\nvcc\include\thrust\detail\transform_reduce.inl:47:10: note: in instantiation of function template specialization 'thrust::cuda_cub::transform_reduce&amp;lt;thrust::cuda_cub::tag, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  return transform_reduce(thrust::detail::derived_cast(thrust::detail::strip_const(exec)), first, last, unary_op, init, binary_op);
         ^
C:\nvcc\include\thrust\detail\transform_reduce.inl:67:18: note: in instantiation of function template specialization 'thrust::transform_reduce&amp;lt;thrust::cuda_cub::tag, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  return thrust::transform_reduce(select_system(system), first, last, unary_op, init, binary_op);
                 ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\include\cml\cml_blas.cuh:155:25: note: in instantiation of function template specialization 'thrust::transform_reduce&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  T nrm2 = sqrt(thrust::transform_reduce(strided_x.begin(), strided_x.end(),
                        ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:453:23: note: in instantiation of function template specialization 'cml::blas_nrm2&amp;lt;double&amp;gt;' requested here
                                + _rel_tol * cml::blas_nrm2(hdl, &amp;amp;z)
                                                  ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:989:16: note: in instantiation of member function 'h2o4gpu::H2O4GPU&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt;, h2o4gpu::ProjectorDirect&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt; &amp;gt; &amp;gt;::Solve' requested here
template class H2O4GPU&amp;lt;double, MatrixDense&amp;lt;double&amp;gt;,
               ^
C:\nvcc\include\thrust\device_ptr.h:37:28: note: template is declared here
template&amp;lt;typename T&amp;gt; class device_reference;
                           ^
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:4:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\solver\glm.h:77:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:14:
In file included from C:\nvcc\include\thrust\device_vector.h:25:
In file included from C:\nvcc\include\thrust\detail\vector_base.h:25:
In file included from C:\nvcc\include\thrust\iterator\detail\normal_iterator.h:25:
In file included from C:\nvcc\include\thrust\iterator\iterator_adaptor.h:36:
C:\nvcc\include\thrust\iterator\iterator_facade.h:128:16: error: implicit instantiation of undefined template 'thrust::device_reference&amp;lt;double&amp;gt;'
      return f.dereference();
               ^
C:\nvcc\include\thrust\device_ptr.h:37:28: note: template is declared here
template&amp;lt;typename T&amp;gt; class device_reference;
                           ^
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:4:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\solver\glm.h:77:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:16:
In file included from C:\nvcc\include\thrust\inner_product.h:263:
In file included from C:\nvcc\include\thrust\detail\inner_product.inl:26:
In file included from C:\nvcc\include\thrust\system\detail\generic\inner_product.h:58:
In file included from C:\nvcc\include\thrust\system\detail\generic\inner_product.inl:21:
In file included from C:\nvcc\include\thrust\transform_reduce.h:197:
In file included from C:\nvcc\include\thrust\detail\transform_reduce.inl:25:
In file included from C:\nvcc\include\thrust\system\detail\generic\transform_reduce.h:52:
In file included from C:\nvcc\include\thrust\system\detail\generic\transform_reduce.inl:19:
In file included from C:\nvcc\include\thrust\reduce.h:784:
In file included from C:\nvcc\include\thrust\detail\reduce.inl:26:
In file included from C:\nvcc\include\thrust\system\detail\generic\reduce_by_key.h:88:
In file included from C:\nvcc\include\thrust\system\detail\generic\reduce_by_key.inl:30:
In file included from C:\nvcc\include\thrust\scatter.h:422:
In file included from C:\nvcc\include\thrust\detail\scatter.inl:25:
In file included from C:\nvcc\include\thrust\system\detail\generic\scatter.h:80:
In file included from C:\nvcc\include\thrust\system\detail\generic\scatter.inl:22:
C:\nvcc\include\thrust\iterator\permutation_iterator.h:177:33: error: implicit instantiation of undefined template 'thrust::device_reference&amp;lt;double&amp;gt;'
    typename super_t::reference dereference() const
                                ^
C:\nvcc\include\thrust\iterator\iterator_facade.h:128:16: note: in instantiation of member function 'thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;::dereference' requested here
      return f.dereference();
               ^
C:\nvcc\include\thrust\iterator\iterator_facade.h:310:36: note: in instantiation of function template specialization 'thrust::iterator_core_access::dereference&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt; &amp;gt;' requested here
      return iterator_core_access::dereference(this-&amp;gt;derived());
                                   ^
C:\nvcc\include\thrust\iterator\iterator_facade.h:328:14: note: in instantiation of member function 'thrust::iterator_facade&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, double, thrust::cuda_cub::tag, thrust::random_access_traversal_tag, thrust::device_reference&amp;lt;double&amp;gt;, long long&amp;gt;::operator*' requested here
      return *(this-&amp;gt;derived() + n);
             ^
C:\nvcc\include\thrust\system\cuda\detail\util.h:311:15: note: in instantiation of member function 'thrust::iterator_facade&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, double, thrust::cuda_cub::tag, thrust::random_access_traversal_tag, thrust::device_reference&amp;lt;double&amp;gt;, long long&amp;gt;::operator[]' requested here
    return op(input&lt;N&gt;);
              ^
C:\nvcc\include\thrust\system\cuda\detail\cub\agent\agent_reduce.cuh:290:32: note: in instantiation of member function 'thrust::cuda_cub::transform_input_iterator_t&amp;lt;double, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt; &amp;gt;::operator[]' requested here
            thread_aggregate = d_wrapped_in[block_offset + thread_offset];
                               ^
C:\nvcc\include\thrust\system\cuda\detail\cub\agent\agent_reduce.cuh:322:13: note: (skipping 14 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
            ConsumeTile&amp;lt;true&amp;gt;(thread_aggregate, even_share.block_offset, valid_items, Int2Type&amp;lt;false&amp;gt;(), can_vectorize);
            ^
C:\nvcc\include\thrust\detail\transform_reduce.inl:47:10: note: in instantiation of function template specialization 'thrust::cuda_cub::transform_reduce&amp;lt;thrust::cuda_cub::tag, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  return transform_reduce(thrust::detail::derived_cast(thrust::detail::strip_const(exec)), first, last, unary_op, init, binary_op);
         ^
C:\nvcc\include\thrust\detail\transform_reduce.inl:67:18: note: in instantiation of function template specialization 'thrust::transform_reduce&amp;lt;thrust::cuda_cub::tag, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  return thrust::transform_reduce(select_system(system), first, last, unary_op, init, binary_op);
                 ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\include\cml\cml_blas.cuh:155:25: note: in instantiation of function template specialization 'thrust::transform_reduce&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  T nrm2 = sqrt(thrust::transform_reduce(strided_x.begin(), strided_x.end(),
                        ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:453:23: note: in instantiation of function template specialization 'cml::blas_nrm2&amp;lt;double&amp;gt;' requested here
                                + _rel_tol * cml::blas_nrm2(hdl, &amp;amp;z)
                                                  ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:989:16: note: in instantiation of member function 'h2o4gpu::H2O4GPU&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt;, h2o4gpu::ProjectorDirect&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt; &amp;gt; &amp;gt;::Solve' requested here
template class H2O4GPU&amp;lt;double, MatrixDense&amp;lt;double&amp;gt;,
               ^
C:\nvcc\include\thrust\device_ptr.h:37:28: note: template is declared here
template&amp;lt;typename T&amp;gt; class device_reference;
                           ^
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:4:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\solver\glm.h:77:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:16:
In file included from C:\nvcc\include\thrust\inner_product.h:263:
In file included from C:\nvcc\include\thrust\detail\inner_product.inl:26:
In file included from C:\nvcc\include\thrust\system\detail\generic\inner_product.h:58:
In file included from C:\nvcc\include\thrust\system\detail\generic\inner_product.inl:21:
In file included from C:\nvcc\include\thrust\transform_reduce.h:197:
In file included from C:\nvcc\include\thrust\detail\transform_reduce.inl:25:
In file included from C:\nvcc\include\thrust\system\detail\generic\transform_reduce.h:52:
In file included from C:\nvcc\include\thrust\system\detail\generic\transform_reduce.inl:19:
In file included from C:\nvcc\include\thrust\reduce.h:784:
In file included from C:\nvcc\include\thrust\detail\reduce.inl:26:
In file included from C:\nvcc\include\thrust\system\detail\generic\reduce_by_key.h:88:
In file included from C:\nvcc\include\thrust\system\detail\generic\reduce_by_key.inl:30:
In file included from C:\nvcc\include\thrust\scatter.h:422:
In file included from C:\nvcc\include\thrust\detail\scatter.inl:25:
In file included from C:\nvcc\include\thrust\system\detail\generic\scatter.h:80:
In file included from C:\nvcc\include\thrust\system\detail\generic\scatter.inl:22:
C:\nvcc\include\thrust\iterator\permutation_iterator.h:179:14: error: implicit instantiation of undefined template 'thrust::device_reference&amp;lt;double&amp;gt;'
      return *(m_element_iterator + *this-&amp;gt;base());
             ^
C:\nvcc\include\thrust\device_ptr.h:37:28: note: template is declared here
template&amp;lt;typename T&amp;gt; class device_reference;
                           ^
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:4:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\solver\glm.h:77:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:14:
In file included from C:\nvcc\include\thrust\device_vector.h:25:
In file included from C:\nvcc\include\thrust\detail\vector_base.h:25:
In file included from C:\nvcc\include\thrust\iterator\detail\normal_iterator.h:25:
In file included from C:\nvcc\include\thrust\iterator\iterator_adaptor.h:36:
C:\nvcc\include\thrust\iterator\iterator_facade.h:308:15: error: implicit instantiation of undefined template 'thrust::device_reference&amp;lt;double&amp;gt;'
    reference operator*() const
              ^
C:\nvcc\include\thrust\iterator\permutation_iterator.h:179:14: note: in instantiation of member function 'thrust::iterator_facade&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, double, thrust::cuda_cub::tag, thrust::random_access_traversal_tag, thrust::device_reference&amp;lt;double&amp;gt;, long long&amp;gt;::operator*' requested here
      return *(m_element_iterator + *this-&amp;gt;base());
             ^
C:\nvcc\include\thrust\iterator\iterator_facade.h:128:16: note: in instantiation of member function 'thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;::dereference' requested here
      return f.dereference();
               ^
C:\nvcc\include\thrust\iterator\iterator_facade.h:310:36: note: in instantiation of function template specialization 'thrust::iterator_core_access::dereference&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt; &amp;gt;' requested here
      return iterator_core_access::dereference(this-&amp;gt;derived());
                                   ^
C:\nvcc\include\thrust\iterator\iterator_facade.h:328:14: note: in instantiation of member function 'thrust::iterator_facade&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, double, thrust::cuda_cub::tag, thrust::random_access_traversal_tag, thrust::device_reference&amp;lt;double&amp;gt;, long long&amp;gt;::operator*' requested here
      return *(this-&amp;gt;derived() + n);
             ^
C:\nvcc\include\thrust\system\cuda\detail\util.h:311:15: note: in instantiation of member function 'thrust::iterator_facade&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, double, thrust::cuda_cub::tag, thrust::random_access_traversal_tag, thrust::device_reference&amp;lt;double&amp;gt;, long long&amp;gt;::operator[]' requested here
    return op(input&lt;N&gt;);
              ^
C:\nvcc\include\thrust\system\cuda\detail\cub\agent\agent_reduce.cuh:290:32: note: (skipping 15 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
            thread_aggregate = d_wrapped_in[block_offset + thread_offset];
                               ^
C:\nvcc\include\thrust\detail\transform_reduce.inl:47:10: note: in instantiation of function template specialization 'thrust::cuda_cub::transform_reduce&amp;lt;thrust::cuda_cub::tag, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  return transform_reduce(thrust::detail::derived_cast(thrust::detail::strip_const(exec)), first, last, unary_op, init, binary_op);
         ^
C:\nvcc\include\thrust\detail\transform_reduce.inl:67:18: note: in instantiation of function template specialization 'thrust::transform_reduce&amp;lt;thrust::cuda_cub::tag, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  return thrust::transform_reduce(select_system(system), first, last, unary_op, init, binary_op);
                 ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\include\cml\cml_blas.cuh:155:25: note: in instantiation of function template specialization 'thrust::transform_reduce&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  T nrm2 = sqrt(thrust::transform_reduce(strided_x.begin(), strided_x.end(),
                        ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:453:23: note: in instantiation of function template specialization 'cml::blas_nrm2&amp;lt;double&amp;gt;' requested here
                                + _rel_tol * cml::blas_nrm2(hdl, &amp;amp;z)
                                                  ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:989:16: note: in instantiation of member function 'h2o4gpu::H2O4GPU&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt;, h2o4gpu::ProjectorDirect&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt; &amp;gt; &amp;gt;::Solve' requested here
template class H2O4GPU&amp;lt;double, MatrixDense&amp;lt;double&amp;gt;,
               ^
C:\nvcc\include\thrust\device_ptr.h:37:28: note: template is declared here
template&amp;lt;typename T&amp;gt; class device_reference;
                           ^
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:4:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\solver\glm.h:77:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:14:
In file included from C:\nvcc\include\thrust\device_vector.h:25:
In file included from C:\nvcc\include\thrust\detail\vector_base.h:25:
In file included from C:\nvcc\include\thrust\iterator\detail\normal_iterator.h:25:
In file included from C:\nvcc\include\thrust\iterator\iterator_adaptor.h:36:
C:\nvcc\include\thrust\iterator\iterator_facade.h:310:14: error: implicit instantiation of undefined template 'thrust::device_reference&amp;lt;double&amp;gt;'
      return iterator_core_access::dereference(this-&amp;gt;derived());
             ^
C:\nvcc\include\thrust\device_ptr.h:37:28: note: template is declared here
template&amp;lt;typename T&amp;gt; class device_reference;
                           ^
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:4:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\solver\glm.h:77:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:14:
In file included from C:\nvcc\include\thrust\device_vector.h:25:
In file included from C:\nvcc\include\thrust\detail\vector_base.h:25:
In file included from C:\nvcc\include\thrust\iterator\detail\normal_iterator.h:25:
In file included from C:\nvcc\include\thrust\iterator\iterator_adaptor.h:36:
C:\nvcc\include\thrust\iterator\iterator_facade.h:126:39: error: implicit instantiation of undefined template 'thrust::device_reference&amp;lt;double&amp;gt;'
    static typename Facade::reference dereference(Facade const&amp;amp; f)
                                      ^
C:\nvcc\include\thrust\iterator\iterator_facade.h:310:36: note: in instantiation of function template specialization 'thrust::iterator_core_access::dereference&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;' requested here
      return iterator_core_access::dereference(this-&amp;gt;derived());
                                   ^
C:\nvcc\include\thrust\iterator\permutation_iterator.h:179:14: note: in instantiation of member function 'thrust::iterator_facade&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, double, thrust::cuda_cub::tag, thrust::random_access_traversal_tag, thrust::device_reference&amp;lt;double&amp;gt;, long long&amp;gt;::operator*' requested here
      return *(m_element_iterator + *this-&amp;gt;base());
             ^
C:\nvcc\include\thrust\iterator\iterator_facade.h:128:16: note: in instantiation of member function 'thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;::dereference' requested here
      return f.dereference();
               ^
C:\nvcc\include\thrust\iterator\iterator_facade.h:310:36: note: in instantiation of function template specialization 'thrust::iterator_core_access::dereference&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt; &amp;gt;' requested here
      return iterator_core_access::dereference(this-&amp;gt;derived());
                                   ^
C:\nvcc\include\thrust\iterator\iterator_facade.h:328:14: note: in instantiation of member function 'thrust::iterator_facade&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, double, thrust::cuda_cub::tag, thrust::random_access_traversal_tag, thrust::device_reference&amp;lt;double&amp;gt;, long long&amp;gt;::operator*' requested here
      return *(this-&amp;gt;derived() + n);
             ^
C:\nvcc\include\thrust\system\cuda\detail\util.h:311:15: note: (skipping 16 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
    return op(input&lt;N&gt;);
              ^
C:\nvcc\include\thrust\detail\transform_reduce.inl:47:10: note: in instantiation of function template specialization 'thrust::cuda_cub::transform_reduce&amp;lt;thrust::cuda_cub::tag, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  return transform_reduce(thrust::detail::derived_cast(thrust::detail::strip_const(exec)), first, last, unary_op, init, binary_op);
         ^
C:\nvcc\include\thrust\detail\transform_reduce.inl:67:18: note: in instantiation of function template specialization 'thrust::transform_reduce&amp;lt;thrust::cuda_cub::tag, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  return thrust::transform_reduce(select_system(system), first, last, unary_op, init, binary_op);
                 ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\include\cml\cml_blas.cuh:155:25: note: in instantiation of function template specialization 'thrust::transform_reduce&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  T nrm2 = sqrt(thrust::transform_reduce(strided_x.begin(), strided_x.end(),
                        ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:453:23: note: in instantiation of function template specialization 'cml::blas_nrm2&amp;lt;double&amp;gt;' requested here
                                + _rel_tol * cml::blas_nrm2(hdl, &amp;amp;z)
                                                  ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:989:16: note: in instantiation of member function 'h2o4gpu::H2O4GPU&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt;, h2o4gpu::ProjectorDirect&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt; &amp;gt; &amp;gt;::Solve' requested here
template class H2O4GPU&amp;lt;double, MatrixDense&amp;lt;double&amp;gt;,
               ^
C:\nvcc\include\thrust\device_ptr.h:37:28: note: template is declared here
template&amp;lt;typename T&amp;gt; class device_reference;
                           ^
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:4:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\solver\glm.h:77:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:14:
In file included from C:\nvcc\include\thrust\device_vector.h:25:
In file included from C:\nvcc\include\thrust\detail\vector_base.h:25:
In file included from C:\nvcc\include\thrust\iterator\detail\normal_iterator.h:25:
In file included from C:\nvcc\include\thrust\iterator\iterator_adaptor.h:36:
C:\nvcc\include\thrust\iterator\iterator_facade.h:128:16: error: implicit instantiation of undefined template 'thrust::device_reference&amp;lt;double&amp;gt;'
      return f.dereference();
               ^
C:\nvcc\include\thrust\device_ptr.h:37:28: note: template is declared here
template&amp;lt;typename T&amp;gt; class device_reference;
                           ^
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:4:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\solver\glm.h:77:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:14:
In file included from C:\nvcc\include\thrust\device_vector.h:25:
In file included from C:\nvcc\include\thrust\detail\vector_base.h:29:
In file included from C:\nvcc\include\thrust\detail\contiguous_storage.h:240:
C:\nvcc\include\thrust\detail\contiguous_storage.inl:159:11: error: implicit instantiation of undefined template 'thrust::reference&amp;lt;unsigned char, thrust::pointer&amp;lt;unsigned char, thrust::cuda_cub::tag, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default&amp;gt;'
  return &amp;amp;*m_begin;
          ^
C:\nvcc\include\thrust\system\cuda\detail\reduce.h:966:65: note: in instantiation of member function 'thrust::detail::contiguous_storage&amp;lt;unsigned char, thrust::detail::no_throw_allocator&amp;lt;thrust::detail::temporary_allocator&amp;lt;unsigned char, thrust::cuda_cub::tag&amp;gt; &amp;gt; &amp;gt;::data' requested here
  T* ret_ptr = thrust::detail::aligned_reinterpret_cast&amp;lt;T*&amp;gt;(tmp.data().get());
                                                                ^
C:\nvcc\include\thrust\system\cuda\detail\reduce.h:1017:38: note: in instantiation of function template specialization 'thrust::cuda_cub::detail::reduce_n_impl&amp;lt;thrust::cuda_cub::tag, thrust::cuda_cub::transform_input_iterator_t&amp;lt;double, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt; &amp;gt;, long long, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
    return thrust::cuda_cub::detail::reduce_n_impl(
                                     ^
C:\nvcc\include\thrust\system\cuda\detail\transform_reduce.h:58:20: note: in instantiation of function template specialization 'thrust::cuda_cub::reduce_n&amp;lt;thrust::cuda_cub::tag, thrust::cuda_cub::transform_input_iterator_t&amp;lt;double, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt; &amp;gt;, long long, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  return cuda_cub::reduce_n(policy,
                   ^
C:\nvcc\include\thrust\detail\transform_reduce.inl:47:10: note: in instantiation of function template specialization 'thrust::cuda_cub::transform_reduce&amp;lt;thrust::cuda_cub::tag, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  return transform_reduce(thrust::detail::derived_cast(thrust::detail::strip_const(exec)), first, last, unary_op, init, binary_op);
         ^
C:\nvcc\include\thrust\detail\transform_reduce.inl:67:18: note: in instantiation of function template specialization 'thrust::transform_reduce&amp;lt;thrust::cuda_cub::tag, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  return thrust::transform_reduce(select_system(system), first, last, unary_op, init, binary_op);
                 ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\include\cml\cml_blas.cuh:155:25: note: in instantiation of function template specialization 'thrust::transform_reduce&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  T nrm2 = sqrt(thrust::transform_reduce(strided_x.begin(), strided_x.end(),
                        ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:453:23: note: in instantiation of function template specialization 'cml::blas_nrm2&amp;lt;double&amp;gt;' requested here
                                + _rel_tol * cml::blas_nrm2(hdl, &amp;amp;z)
                                                  ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:989:16: note: in instantiation of member function 'h2o4gpu::H2O4GPU&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt;, h2o4gpu::ProjectorDirect&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt; &amp;gt; &amp;gt;::Solve' requested here
template class H2O4GPU&amp;lt;double, MatrixDense&amp;lt;double&amp;gt;,
               ^
C:\nvcc\include\thrust\detail\reference_forward_declaration.h:25:84: note: template is declared here
template&amp;lt;typename Element, typename Pointer, typename Derived = use_default&amp;gt; class reference;
                                                                                   ^
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:4:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\solver\glm.h:77:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:14:
In file included from C:\nvcc\include\thrust\device_vector.h:25:
In file included from C:\nvcc\include\thrust\detail\vector_base.h:25:
In file included from C:\nvcc\include\thrust\iterator\detail\normal_iterator.h:25:
In file included from C:\nvcc\include\thrust\iterator\iterator_adaptor.h:36:
C:\nvcc\include\thrust\iterator\iterator_facade.h:308:15: error: implicit instantiation of undefined template 'thrust::reference&amp;lt;unsigned char, thrust::pointer&amp;lt;unsigned char, thrust::cuda_cub::tag, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default&amp;gt;'
    reference operator*() const
              ^
C:\nvcc\include\thrust\detail\contiguous_storage.inl:159:11: note: in instantiation of member function 'thrust::iterator_facade&amp;lt;thrust::detail::normal_iterator&amp;lt;thrust::pointer&amp;lt;unsigned char, thrust::cuda_cub::tag, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, unsigned char, thrust::cuda_cub::tag, thrust::random_access_traversal_tag, thrust::reference&amp;lt;unsigned char, thrust::pointer&amp;lt;unsigned char, thrust::cuda_cub::tag, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default&amp;gt;, long long&amp;gt;::operator*' requested here
  return &amp;amp;*m_begin;
          ^
C:\nvcc\include\thrust\system\cuda\detail\reduce.h:966:65: note: in instantiation of member function 'thrust::detail::contiguous_storage&amp;lt;unsigned char, thrust::detail::no_throw_allocator&amp;lt;thrust::detail::temporary_allocator&amp;lt;unsigned char, thrust::cuda_cub::tag&amp;gt; &amp;gt; &amp;gt;::data' requested here
  T* ret_ptr = thrust::detail::aligned_reinterpret_cast&amp;lt;T*&amp;gt;(tmp.data().get());
                                                                ^
C:\nvcc\include\thrust\system\cuda\detail\reduce.h:1017:38: note: in instantiation of function template specialization 'thrust::cuda_cub::detail::reduce_n_impl&amp;lt;thrust::cuda_cub::tag, thrust::cuda_cub::transform_input_iterator_t&amp;lt;double, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt; &amp;gt;, long long, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
    return thrust::cuda_cub::detail::reduce_n_impl(
                                     ^
C:\nvcc\include\thrust\system\cuda\detail\transform_reduce.h:58:20: note: in instantiation of function template specialization 'thrust::cuda_cub::reduce_n&amp;lt;thrust::cuda_cub::tag, thrust::cuda_cub::transform_input_iterator_t&amp;lt;double, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt; &amp;gt;, long long, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  return cuda_cub::reduce_n(policy,
                   ^
C:\nvcc\include\thrust\detail\transform_reduce.inl:47:10: note: in instantiation of function template specialization 'thrust::cuda_cub::transform_reduce&amp;lt;thrust::cuda_cub::tag, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  return transform_reduce(thrust::detail::derived_cast(thrust::detail::strip_const(exec)), first, last, unary_op, init, binary_op);
         ^
C:\nvcc\include\thrust\detail\transform_reduce.inl:67:18: note: in instantiation of function template specialization 'thrust::transform_reduce&amp;lt;thrust::cuda_cub::tag, thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  return thrust::transform_reduce(select_system(system), first, last, unary_op, init, binary_op);
                 ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\include\cml\cml_blas.cuh:155:25: note: in instantiation of function template specialization 'thrust::transform_reduce&amp;lt;thrust::permutation_iterator&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt;, thrust::transform_iterator&amp;lt;cml::strided_range&amp;lt;thrust::device_ptr&amp;lt;double&amp;gt; &amp;gt;::StrideF, thrust::counting_iterator&amp;lt;long long, thrust::use_default, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default, thrust::use_default&amp;gt; &amp;gt;, cml::Square&amp;lt;double&amp;gt;, double, thrust::plus&amp;lt;double&amp;gt; &amp;gt;' requested here
  T nrm2 = sqrt(thrust::transform_reduce(strided_x.begin(), strided_x.end(),
                        ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:453:23: note: in instantiation of function template specialization 'cml::blas_nrm2&amp;lt;double&amp;gt;' requested here
                                + _rel_tol * cml::blas_nrm2(hdl, &amp;amp;z)
                                                  ^
C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:989:16: note: in instantiation of member function 'h2o4gpu::H2O4GPU&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt;, h2o4gpu::ProjectorDirect&amp;lt;double, h2o4gpu::MatrixDense&amp;lt;double&amp;gt; &amp;gt; &amp;gt;::Solve' requested here
template class H2O4GPU&amp;lt;double, MatrixDense&amp;lt;double&amp;gt;,
               ^
C:\nvcc\include\thrust\detail\reference_forward_declaration.h:25:84: note: template is declared here
template&amp;lt;typename Element, typename Pointer, typename Derived = use_default&amp;gt; class reference;
                                                                                   ^
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu:4:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\solver\glm.h:77:
In file included from C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\include\prox_lib.h:14:
In file included from C:\nvcc\include\thrust\device_vector.h:25:
In file included from C:\nvcc\include\thrust\detail\vector_base.h:25:
In file included from C:\nvcc\include\thrust\iterator\detail\normal_iterator.h:25:
In file included from C:\nvcc\include\thrust\iterator\iterator_adaptor.h:36:
C:\nvcc\include\thrust\iterator\iterator_facade.h:310:14: error: implicit instantiation of undefined template 'thrust::reference&amp;lt;unsigned char, thrust::pointer&amp;lt;unsigned char, thrust::cuda_cub::tag, thrust::use_default, thrust::use_default&amp;gt;, thrust::use_default&amp;gt;'
      return iterator_core_access::dereference(this-&amp;gt;derived());
             ^
C:\nvcc\include\thrust\detail\reference_forward_declaration.h:25:84: note: template is declared here
template&amp;lt;typename Element, typename Pointer, typename Derived = use_default&amp;gt; class reference;
                                                                                   ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated when compiling for host.
Error while processing C:\Users\intel\Downloads\cuda code\h2o4gpu-master\src\gpu\h2o4gpuglm.cu.
dpct exited with code: -17 (Error: Cannot parse input file(s))&lt;/N&gt;&lt;/N&gt;&lt;/N&gt;&lt;/N&gt;&lt;/N&gt;&lt;/N&gt;&lt;/N&gt;&lt;/PRE&gt;

&lt;P&gt;Any help is appreciated.&lt;/P&gt;
&lt;P&gt;Gagan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2020 11:33:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-giving-error-in-thrust-files/m-p/1185850#M452</guid>
      <dc:creator>Shukla__Gagandeep</dc:creator>
      <dc:date>2020-06-05T11:33:05Z</dc:date>
    </item>
    <item>
      <title>Hi Gagan,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-giving-error-in-thrust-files/m-p/1185851#M453</link>
      <description>&lt;P&gt;Hi Gagan,&lt;/P&gt;&lt;P&gt;Thanks for reporting these errors, we also get the same errors after migrating&amp;nbsp;&lt;STRONG&gt;h2o4gpuglm.cu&amp;nbsp;&lt;/STRONG&gt;file.&lt;/P&gt;&lt;P&gt;So we are escalating it to the concerned team.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 13:12:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-giving-error-in-thrust-files/m-p/1185851#M453</guid>
      <dc:creator>AbhishekD_Intel</dc:creator>
      <dc:date>2020-06-08T13:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: dpct giving error in thrust files</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-giving-error-in-thrust-files/m-p/1192844#M574</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Anoop_M_Intel_0-1594888723429.png" style="width: 592px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/11274i966141A1728A4BA9/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Anoop_M_Intel_0-1594888723429.png" alt="Anoop_M_Intel_0-1594888723429.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I see the above requirement for this project but you are trying this on Windows OS.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 08:39:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-giving-error-in-thrust-files/m-p/1192844#M574</guid>
      <dc:creator>Anoop_M_Intel</dc:creator>
      <dc:date>2020-07-16T08:39:40Z</dc:date>
    </item>
  </channel>
</rss>

