<?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 Hi Goutham, in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-failed-to-create-file-with-invalid-argument-on-Windows10/m-p/1172214#M289</link>
    <description>&lt;P&gt;Hi Goutham,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code is really easy:&lt;/P&gt;
&lt;PRE class="brush:cpp; class-name:dark;"&gt;#include &amp;lt;cuda.h&amp;gt;
#include &amp;lt;stdio.h&amp;gt;
#define VECTOR_SIZE 256

__global__ void VectorAddKernel(float* A, float* B, float* C)
{
    A[threadIdx.x] = threadIdx.x + 1.0f;
    B[threadIdx.x] = threadIdx.x + 1.0f;
    C[threadIdx.x] = A[threadIdx.x] + B[threadIdx.x];
}

int main()
{
    float *d_A, *d_B, *d_C;
	
    cudaMalloc(&amp;amp;d_A, VECTOR_SIZE*sizeof(float));
    cudaMalloc(&amp;amp;d_B, VECTOR_SIZE*sizeof(float));
    cudaMalloc(&amp;amp;d_C, VECTOR_SIZE*sizeof(float));
    
    VectorAddKernel&amp;lt;&amp;lt;&amp;lt;1, VECTOR_SIZE&amp;gt;&amp;gt;&amp;gt;(d_A, d_B, d_C);
    
    float Result[VECTOR_SIZE] = { };
    cudaMemcpy(Result, d_C, VECTOR_SIZE*sizeof(float), cudaMemcpyDeviceToHost);

    cudaFree(d_A);
    cudaFree(d_B);
    cudaFree(d_C);

    for (int i = 0; i &amp;lt; VECTOR_SIZE; i++) {
        if (i % 16 == 0) {
            printf("\n");
        }
        printf("%f ", Result&lt;I&gt;);    
    }
	
    return 0;
}&lt;/I&gt;&lt;/PRE&gt;

&lt;P&gt;I suspect if some syscall failed in dpct on Windows 10, because dpct failed with "fail: invalid argument"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 30 Apr 2020 02:59:35 GMT</pubDate>
    <dc:creator>Jim</dc:creator>
    <dc:date>2020-04-30T02:59:35Z</dc:date>
    <item>
      <title>dpct failed to create file with invalid argument on Windows10</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-failed-to-create-file-with-invalid-argument-on-Windows10/m-p/1172212#M287</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;I try to use dpct-beta05 on Windows 10 Version 1919 OS build 18363.778&lt;/P&gt;&lt;P&gt;The tested CUDA toolkit version is v10.2&lt;/P&gt;&lt;P&gt;The error looks like:&lt;/P&gt;
&lt;PRE class="brush:bash; class-name:dark;"&gt;&amp;gt;dpct vector_add.cu
NOTE: Could not auto-detect compilation database for file 'vector_add.cu' in 'C:\Users\jim\Workspace\cudatest' or any parent directory.
The directory "dpct_output" is used as "out-root"
Processing: C:\Users\jim\Workspace\cudatest\vector_add.cu
[ERROR] Create file : d:\workspace\cudatest\dpct_outputc:\users\jim\workspace\cudatest\vector_add.dp.cpp fail: invalid argument
dpct exited with code: -2 (Error: Saving output file(s))&lt;/PRE&gt;

&lt;P&gt;BTW This process is ok on Ubuntu 18.04 with same dpct and CUDA toolkit version.&lt;/P&gt;
&lt;P&gt;PS: dpct seems have no verbose output and on windows I don't know how to strace.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 06:47:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-failed-to-create-file-with-invalid-argument-on-Windows10/m-p/1172212#M287</guid>
      <dc:creator>Jim</dc:creator>
      <dc:date>2020-04-27T06:47:42Z</dc:date>
    </item>
    <item>
      <title>Hi Jim,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-failed-to-create-file-with-invalid-argument-on-Windows10/m-p/1172213#M288</link>
      <description>&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;Thanks for reaching out to us!&lt;/P&gt;&lt;P&gt;Our team is working on your query, we will get back to you.&lt;/P&gt;&lt;P&gt;Could you please share the source code if possible. So that it will be helpful to investigate more regarding the issue you are facing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Goutham&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 13:06:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-failed-to-create-file-with-invalid-argument-on-Windows10/m-p/1172213#M288</guid>
      <dc:creator>GouthamK_Intel</dc:creator>
      <dc:date>2020-04-27T13:06:59Z</dc:date>
    </item>
    <item>
      <title>Hi Goutham,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-failed-to-create-file-with-invalid-argument-on-Windows10/m-p/1172214#M289</link>
      <description>&lt;P&gt;Hi Goutham,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code is really easy:&lt;/P&gt;
&lt;PRE class="brush:cpp; class-name:dark;"&gt;#include &amp;lt;cuda.h&amp;gt;
#include &amp;lt;stdio.h&amp;gt;
#define VECTOR_SIZE 256

__global__ void VectorAddKernel(float* A, float* B, float* C)
{
    A[threadIdx.x] = threadIdx.x + 1.0f;
    B[threadIdx.x] = threadIdx.x + 1.0f;
    C[threadIdx.x] = A[threadIdx.x] + B[threadIdx.x];
}

int main()
{
    float *d_A, *d_B, *d_C;
	
    cudaMalloc(&amp;amp;d_A, VECTOR_SIZE*sizeof(float));
    cudaMalloc(&amp;amp;d_B, VECTOR_SIZE*sizeof(float));
    cudaMalloc(&amp;amp;d_C, VECTOR_SIZE*sizeof(float));
    
    VectorAddKernel&amp;lt;&amp;lt;&amp;lt;1, VECTOR_SIZE&amp;gt;&amp;gt;&amp;gt;(d_A, d_B, d_C);
    
    float Result[VECTOR_SIZE] = { };
    cudaMemcpy(Result, d_C, VECTOR_SIZE*sizeof(float), cudaMemcpyDeviceToHost);

    cudaFree(d_A);
    cudaFree(d_B);
    cudaFree(d_C);

    for (int i = 0; i &amp;lt; VECTOR_SIZE; i++) {
        if (i % 16 == 0) {
            printf("\n");
        }
        printf("%f ", Result&lt;I&gt;);    
    }
	
    return 0;
}&lt;/I&gt;&lt;/PRE&gt;

&lt;P&gt;I suspect if some syscall failed in dpct on Windows 10, because dpct failed with "fail: invalid argument"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 02:59:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-failed-to-create-file-with-invalid-argument-on-Windows10/m-p/1172214#M289</guid>
      <dc:creator>Jim</dc:creator>
      <dc:date>2020-04-30T02:59:35Z</dc:date>
    </item>
    <item>
      <title>Hi Jim,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-failed-to-create-file-with-invalid-argument-on-Windows10/m-p/1172215#M290</link>
      <description>&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;Thanks, for providing the source code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are able to migrate the same source code successfully without any errors. Below are&amp;nbsp;my system environment details.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OS Version&lt;/STRONG&gt;: Windows10&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;oneAPI Basekit Version&lt;/STRONG&gt;: 2021.1-beta05&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CUDA Toolkit Version&lt;/STRONG&gt;: 10.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, to investigate more on your issue, we have escalated&amp;nbsp;this to the concerned team.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Goutham&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 07:10:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-failed-to-create-file-with-invalid-argument-on-Windows10/m-p/1172215#M290</guid>
      <dc:creator>GouthamK_Intel</dc:creator>
      <dc:date>2020-04-30T07:10:42Z</dc:date>
    </item>
    <item>
      <title>Re:dpct failed to create file with invalid argumen...</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-failed-to-create-file-with-invalid-argument-on-Windows10/m-p/1266085#M1033</link>
      <description>&lt;P&gt;Hello all, &lt;/P&gt;&lt;P&gt;this issue has been fixed sometime ago. it is working on Windows now. The generated code is also compiled ok with dpcpp, and runs ok as well. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;There're always improvements and new added support for additional APIs in the dpct for each release. Please make sure to download and install the latest release of oneAPI Base Toolkit. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Mar 2021 16:31:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-failed-to-create-file-with-invalid-argument-on-Windows10/m-p/1266085#M1033</guid>
      <dc:creator>JenniferJ</dc:creator>
      <dc:date>2021-03-19T16:31:56Z</dc:date>
    </item>
  </channel>
</rss>

