Quantcast
Channel: Intel® Software - Intel® C++ Compiler
Viewing all 1175 articles
Browse latest View live

image::write causing exception

$
0
0

I am trying to write data into an image buffer using image::write but it is causing an exception.

Input image img2 is a simple uchar4 rgba image and I just want to copy this image to new buffer (*out). If I comment out image3Ptr.write, I do not get an exception

uint4 *out = (uint4 *)calloc(fWidth * fHeight, sizeof(uchar4));

cl::sycl::image<2> img2(second, cl::sycl::image_channel_order::rgba,
	cl::sycl::image_channel_type::unsigned_int8, range<2>(sWidth, sHeight));
cl::sycl::image<2> img3(out, cl::sycl::image_channel_order::rgba,
	cl::sycl::image_channel_type::unsigned_int8, range<2>(sWidth, sHeight));
myQueue.submit([&](handler &cgh)
{
	accessor<uint4, 2, access::mode::read, access::target::image> image2Ptr(img2, cgh);
	accessor<uint4, 2, access::mode::write, access::target::image> image3Ptr(img3, cgh);
	cgh.parallel_for<class nn_search1>(
		nd_range<2>(range<2>(fWidth, fHeight), range<2>(1, 1)),
		[=](nd_item<2> item)
	{
		auto idx = item.get_global_id(0);
		auto idy = item.get_global_id(1);
		uint4 v = image2Ptr.read((int2)(idx, idy));
		image3Ptr.write((int2)(idx, idy), v);
	});
});

Exception details: Exception thrown at 0x00007FFA776BBACF (igc64.dll) in PatchMatch.exe: 0xC0000005: Access violation writing location 0x000000000000001A.

Visual studio takes me to handler.hpp, line 407 

detail::EventImplPtr Event = detail::Scheduler::getInstance().addCG(
        std::move(CommandGroup), std::move(MQueue));

and stack trace shows:

     PatchMatch.exe!cl::sycl::handler::finalize() Line 407    C++
     PatchMatch.exe!cl::sycl::detail::queue_impl::submit_impl<`lambda at ..\\source\\PM_SYCL.cpp:531:21'>(nn_search_sycl1::<unnamed-tag> cgf, std::shared_ptr<cl::sycl::detail::queue_impl> self) Line 212    C++
     PatchMatch.exe!cl::sycl::detail::queue_impl::submit<`lambda at ..\\source\\PM_SYCL.cpp:531:21'>(nn_search_sycl1::<unnamed-tag> cgf, std::shared_ptr<cl::sycl::detail::queue_impl> self) Line 106    C++
     PatchMatch.exe!cl::sycl::queue::submit<`lambda at ..\\source\\PM_SYCL.cpp:531:21'>(nn_search_sycl1::<unnamed-tag> cgf) Line 87    C++

 

TCE Open Date: 

Monday, December 16, 2019 - 23:45

Intel® Parallel Studio XE Pro Windows System requirements

$
0
0

Hello.
I would like to know if the latest version of "Intel® Parallel Studio XE Pro for Windows" is still compatible with Windows 7 SP1.

Regards

 

TCE Open Date: 

Tuesday, December 17, 2019 - 00:03

Modifying a char pointer initialized by character string literal should cause an error.

$
0
0

Hi,

In section 6.7.8 of the C99 draft document defines :

      If an attempt is made to use pointer variable p to modify the contents of the array, the behavior is undefined. 

When executing the testcase below, icc does not report an error or modify the value of the variable NISLParameter0 while other compilers such as gcc and clang report runtime errors: “Segmentation fault”. I think it would be better for intelc to throw an error or at least a warning for the wrong action.

 

The OS is:

Linux version 4.15.0-65-generic

The GCC version in path is :

gcc (GCC) 7.3.0

 

TestCase:

#include<stdio.h>

char *function(char *buf){

    int i = 5;

    buf[5] = '1';

    return buf;

}

int main(void){

    char *NISLParameter0 = "abcdefghij";

    char *NISLParameter1 = function(NISLParameter0);

    printf("%s\n", NISLParameter1);

    return 0;

}

 

Compiler Version:

icc (ICC) 19.0.4.243 20190416

 

Output:

abcdefghij

 

Expected output:

Throw an error or at least a warning.

TCE Open Date: 

Tuesday, December 17, 2019 - 05:11

_udiv128 in VS2019, not in ICL2020?

$
0
0

Is there an _udiv128 intrinsic in ICL2020, like there is in VS2019?

I just installed the new Parallel Studio 2020 update, and the following program fails to compile in ICL2020, but compiles and runs just fine in VS2019.  ICL returns the error message:

"error: identifier "_udiv128" is undefined"

 

#include <immintrin.h> // for _udiv128 in VS2019.

int main()
{
  unsigned long long Result;

  _udiv128( 1234, 1234, 12345678, &Result );

  return Result;
} 

 

TCE Open Date: 

Tuesday, December 17, 2019 - 19:06

How do you Remove Old Intel Compiler Versions

$
0
0

Stupid question: I have accumulated a number of obsolete versions of the Intel compilers and need to clean up. I used the brute force method of trashing the whole /opt/intel directory and then installing the current release. Is there a better way to clean up?

TCE Open Date: 

Wednesday, December 18, 2019 - 12:02

Initialisation of for-loop variable using string literal

$
0
0

Hi,

I've recently encountered a compiler error using the Intel compiler using the following code:

inline unsigned long long operator""_abc(const unsigned long long value)
{
    return value;
}

int main()
{
    auto a = 0_abc;
    for (; a < 2_abc; ++a)
    {
    }

    for (auto b = 0_abc; b < 2_abc; ++b)
    {
    }

    return 0;
}

The compiler error I get is 

1>C:\Users\dkoschier\Dev\StringLiteral\StringLiteral\main.cpp(14): error : user-defined literal operator not found
1>      for (auto b = 0_abc; b < 2_abc; ++b)
 

The first for-loop happily compiles while the initialisation in the second one doesn't. I genuinely believe this is a bug in the compiler.

Does anyone know of a way to fix this problem? 

EDIT: Occured using Intel® C++ Compiler 18.0 in Windows 10

TCE Open Date: 

Thursday, December 19, 2019 - 06:46

Eclipse version and CDT version for Parallel Studio XE 2020 C++ Compiler for Linux v19.1

$
0
0

greetings,

I have went through the release notes for the Intel C++ Compiler for Linux v19.1, but I

have not found out the required compatible Eclipse and CDT versions.

I want to have the latest eclipse version that this compiler supports.

thank you

david

 

 

TCE Open Date: 

Sunday, December 22, 2019 - 14:16

How to use 32 bit version with intel icc compiler

$
0
0

Hi,

I have been using the intel icc compiler 64 bit version with no issues. But when i want to use the 32 bit version with the following steps,

source /opt/intel/system_studio_2019/compilers_and_libraries_2019.5.281/linux/bin/compilervars.sh ia32

 /opt/intel/system_studio_2019/compilers_and_libraries_2019.5.281/linux/bin/ia32/icc  file.c

I get the below error

because of this im getting this icc: error #10417: Problem setting up the Intel(R) Compiler compilation environment.  Requires 'install path' setting gathered from 'i686-linux-android-gcc'

 I have checked on my machine even with source compilervars.sh ia32, which icc points to the 64 bit version..

/src/cel_ww47_b_icc$ which icc

/opt/intel/system_studio_2019/compilers_and_libraries_2019.5.281/linux/bin/intel64/icc

can anyone please help me ?

Note: I have tried some locale settings with LC_MESSAGES=L=POSIX bit with no luck

TCE Open Date: 

Thursday, December 26, 2019 - 21:47

Problem with virtual functions

$
0
0

I am testing the use of Intel C++ Compiler 19.1 with Visual Studio 2019 with my fairly large application. I am having problems with virtual functions in very specific situations that I do not have with the Microsoft compiler in VS, or with GCC on both Linux and Mac. This is a framework that I have been using for years without problems and (SFAIK) everything is fine (no compiler errors/warnings on any compiler, including Intel).

The problem arises with a virtual function from a base class which is resolved in an intermediate class, for example, ETable has virtual function Special Setup (which is an empty function), the working function is in subclass ETableEdit, which has an subclass ETableEditDocument. SpecialSetup out of an ETable function calls the correct SpecialSetup in ETableEdit, but the <<this>> in ETableEdit::SpecialSetup isn't correct: the pointer is 0x0625dda0 when it should be 0x0625ddb0, and this causes a run-time exception. I've found at least a half-dozen such problems and they all have the same issue: a virtual function from a base class is resolved in an intermediate class where the <<this>> pointer is off by a relatively small offset (typically 8 or 16). I have unsuccessfully tried creating a simple example of this, so I'm not sure what else it is about these classes that triggers the error.

TCE Open Date: 

Friday, December 27, 2019 - 14:51

Installation path for Parallel Studio XE Professional 2019 Update 1 for Windows Hardcoded

$
0
0

Hi, When I try to install Parallel Studio XE Professional 2019 Update 1 for Windows on my computer it hadcodes the path and will not let me change it. Is there some way around this problem ? When I installed Parallel Studio XE Professional 2019 for Windows it let me set my path for the IntelSWTools folder and naturally I want to use the same top-level path.

TCE Open Date: 

Friday, December 27, 2019 - 20:04

Preventing creation of core file upon crash

$
0
0

Hello,

I'm running a program that was compiled with intel c++ compiler and the intel mpi library. Every time the program crashes, it creates many core.* files (typically one per mpi thread). Is there a way to prevent the creation of these files?

 

Thank you,

 

Elad

TCE Open Date: 

Monday, December 30, 2019 - 22:15

std::is_function ignores noexcept variants

$
0
0

This is my first time posting on the forum. So please correct me if I do not conform to the forum's guidelines.

Code snippet

#include <type_traits>
static_assert(std::is_function_v<void() noexcept>);

I do not have any OS information since I used icc v19.01 from godbolt.org.

This static assert fails with icc v19 but the same is not the case with gcc or clang compilers. Compiler flags used -std=c++17 -O3

Is this issue fixed in a later version? If yes, which version is this fixed? How would I retrieve such information in the future when required? Thanks!!!

TCE Open Date: 

Tuesday, December 31, 2019 - 10:49

On Linux, uninstalling older version of compiler damages current version

$
0
0

When I install new compiler version, old one is maintained.

Maybe installer should ask the user what to do about older versions (delete/keep).

If I then uninstall the old version using

... intel/parallel_studio_xe_2019.4.068/uninstall_GUI.sh

(depending on the version I am uninstalling)

it also damages the current installation, for example

... intel/bin/compilervars.sh

also gets deleted and compiler no longer starts.

I had to use repair tool from the GUI installation to fix the currently installed version.

I am using OpenSUSE 15.0, 64 bit, i7-5820K, but it should not matter, since the bug is clearly in the unistallation tool.

 

TCE Open Date: 

Thursday, January 2, 2020 - 15:46

Compiler option /Gm

$
0
0

Hello and a happy new year

 

I try to enable multi processor compilation for my project.

This works fine with the VS compiler, by adding the option /Gm-

After switching to the intel compiler it uses only one core.

The option /MP is set.

Among the comiler options i can not find one that is comparable to the VS /Gm option.

No warning is shown during the compile process.

Win 7 / 64
VS 2010

Intel XE 12.1

Moving the whole project to my laptop, which is running win 10 Enterprise, everything works perfect.

kind regards

Peter 

 

 

TCE Open Date: 

Friday, January 3, 2020 - 10:37

Intel® AVX-512 on 10th Gen mobile CPU


catastrophic error: cannot open source file "openssl/opensslconf.h"

$
0
0

Hi,

I try to compile a c program which contains the only header file "openssl/opensslconf.h" and get the error: catastrophic error: cannot open source file "openssl/opensslconf.h". I find opensslconf.h in directory“/usr/include/x86_64-linux-gnu/openssl/”and link it with -l parameter. But it prints the same error. I am sure there are some solutions i don’t see , but knowledge in linux is low. Thanks in advance for your help.

Complier version: icc (ICC) 19.0.4.243 20190416

System: Ubuntu 16.04.6 LTS

TCE Open Date: 

Wednesday, January 8, 2020 - 01:09

What happened to Xeon Phi lineup ?

$
0
0

Intel® Xeon Phi™ Processor 7295 has more CPU cores than the latest threadripper of AMD, 72 cores vs 64 cores and around $1,000 less than what AMD offer.

So, clearly the Xeon Phi is far better than the AMD threadripper and should be produced again.

TCE Open Date: 

Thursday, January 9, 2020 - 03:22

math.h and C++ intel compiler 19.1

$
0
0

Hi,

We are trying to compile our code (which compiles fine with 16.x on SUSE) with intel compiler 19.1 on redhat and get the following error:

allowing all exceptions is incompatible with previous function "gamma"  (and all the math functions have the same error)

 icpc -c -m64 -DLS64BIT -fPIC -O2 -Kc++ -DDB2UDB  -DSQL_KERNEL_EXTENSION -DUNIX -DBUILDLEVEL=\"11-ls_8700\" -DLINUX -DLS64BIT -DUNIX_64 -I/home/****/v87ls/src/ls -I/home/****/v87ls/inc -I/home/****/v87ls/build/resources/lnx/icc64/inc -I/home/****/v87ls/build/resources/lnx/oi/common -I/home/db2inst1/sqllib/include -I/home/****/v87ls/src/ldap  -DNULL=0 -o icmplsbv.o /home/****/v87ls/build/objs/db2/icmplsbv.cpp
12:05:14 [albus] /home/****/v87ls/build/objs/db2/icmplsbv.cpp(7610): error: allowing all exceptions is incompatible with previous function "gamma" (declared at line 7287)
12:05:14 [albus]   extern "C" double    gamma( double __x );

Looking at our generated code, this is what I see:

extern double lgamma (double) throw ();

extern "C" double    gamma( double __x );

Obviously the throw() declaration causes the problem.  I am not sure which declaration comes from math.h and where the other one comes from.

Please advise.

Thanks

Phong

 

TCE Open Date: 

Friday, January 10, 2020 - 08:35

icc command cannot be found

$
0
0

Hello,

I have a remote machine which has the intel compiler installed already. I can see the /opt/intel/compilers_and_libraries_2018.1.163 and  /opt/intel/parallel_studio_xe_2018.1.038 directories.

But the icc command can not be found. And I have tried to run:

source /opt/intel/bin/compilervars.sh intel64

and 

source /opt/intel/compilers_and_libraries_2018.1.163/linux/bin/compilervars.sh intel64

These attempts didn't figure my problems.

Does anyone have some suggestions?

TCE Open Date: 

Wednesday, January 8, 2020 - 18:30

icc command can not be found

$
0
0

Hello,
I have a remote machine which has the intel compiler installed already. I can see the /opt/intel/compilers_and_libraries_2018.1.163 and  /opt/intel/parallel_studio_xe_2018.1.038 directories.
But the icc command can not be found. And I have tried to run:
source /opt/intel/bin/compilervars.sh intel64
and 
source /opt/intel/compilers_and_libraries_2018.1.163/linux/bin/compilervars.sh intel64
These attempts didn't figure my problems.
Does anyone have some suggestions?

TCE Open Date: 

Wednesday, January 8, 2020 - 22:30
Viewing all 1175 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>