Sungkeun Kim
2018-10-06 00:08:10 UTC
Hi everyone,
I am trying to run a program compiled with HCC on top of GCN3, but I have
an issue regarding unimplemented system call "sched_setaffinity". Based on
my knowledge, this system call is call by one of the libraries that are
combined to the application during the compilation time. Strange thing is
that GCN3_X83 had been implemented "sched_setaffinity" system call but ROCM
library tries to use it. Could anyone help how to solve this case?
Following are my environment and romc/application/config/gem5 information
############################### INFO ##################################
# gem5
source >>> git clone https://gem5.googlesource.com/amd/gem5
-b agutierr/master-gcn3-staging
build command >>> scons -sQ -j4 ./build/GCN3_X86/gem5.opt
config file >>> configs/example/apu_se.py
# ROCM (version 1.6 to be compatible with gem5/GCN3)
packages source >>> downloaded from
http://repo.radeon.com/rocm/archive/apt_1.6.0.tar.bz2
# Development Desktop info
processor >>> Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
kernel >>> Linux ksungkeun84-server 4.9.0-kfd-compute-rocm-rel-1.6-77
#1 SMP Wed Jun 28 07:30:27 CDT 2017 x86_64 x86_64 x86_64 GNU/Linux
OS >>> Ubuntu 16.04
# Application
source code >>> sample application from
https://github.com/RadeonOpenCompute/hcc/wiki#how-to-use-hcc
compile command >>>
hcc `hcc-config --cxxflags` saxpy.cpp -c -o saxpy.cpp.o
hcc `hcc-config --ldflags` --amdgpu-target=gfx701 --amdgpu-target=gfx803
--amdgpu-target=gfx900 saxpy.cpp.o -o saxpy
# Launching simulation
environment setup for shell >>>
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/opt/rocm/lib
export PATH=${PATH}:/opt/rocm/bin
export HCC_RUNTIME=HSA
environment setup using apu_se.py >>>
- env = ['LD_LIBRARY_PATH=%s' % ':'.join([
- "/proj/radl_tools/rocm-1.6/lib",
- "/proj/radl_tools/rocm-1.6/hcc/lib64",
- "/tool/pandora64/.package/libunwind-1.1/lib",
- "/tool/pandora64/.package/gcc-6.4.0/lib64"
- ]),
- "HSA_ENABLE_INTERRUPT=0"]
+ env = [
+ 'LD_LIBRARY_PATH=%s' % ':'.join(["/opt/rocm/lib"]),
+ 'PATH=%s' % ':'.join(["/opt/rocm/bin"]),
+ "HSA_ENABLE_INTERRUPT=0"
+ "HCC_RUNTIME=HSA"]
run command >>> ./build/GCN3_X86/gem5.opt configs/example/apu_se.py
-c ./saxpy
# References
http://gem5.org/GPU_Models
############################### LOGS ##################################
Num SQC = 1 Num scalar caches = 1 Num CU = 4
hsapp_gpu_mapp_paddr: 536870912
env:
Global frequency set at 1000000000000 ticks per second
warn: system.ruby.network adopting orphan SimObject param 'int_links'
warn: system.ruby.network adopting orphan SimObject param 'ext_links'
warn: DRAM device capacity (8192 Mbytes) does not match the address range
assigned (512 Mbytes)
Forcing maxCoalescedReqs to 32 (TLB assoc.)
Forcing maxCoalescedReqs to 32 (TLB assoc.)
Forcing maxCoalescedReqs to 32 (TLB assoc.)
Forcing maxCoalescedReqs to 32 (TLB assoc.)
Forcing maxCoalescedReqs to 32 (TLB assoc.)
Forcing maxCoalescedReqs to 32 (TLB assoc.)
Forcing maxCoalescedReqs to 32 (TLB assoc.)
Forcing maxCoalescedReqs to 32 (TLB assoc.)
0: system.remote_gdb: listening for remote gdb on port 7000
info: Entering event queue @ 0. Starting simulation...
warn: Replacement policy updates recently became the responsibility of
SLICC state machines. Make sure to setMRU() near callbacks in .sm files!
warn: x86 cpuid family 0x0000: unimplemented function 7
warn: ignoring syscall access(...)
warn: ignoring syscall access(...)
warn: ignoring syscall mprotect(...)
warn: ignoring syscall access(...)
warn: ignoring syscall mprotect(...)
warn: ignoring syscall access(...)
warn: ignoring syscall mprotect(...)
warn: ignoring syscall access(...)
warn: ignoring syscall mprotect(...)
warn: ignoring syscall access(...)
warn: ignoring syscall mprotect(...)
warn: ignoring syscall access(...)
warn: ignoring syscall mprotect(...)
...
warn: fcntl: unsupported command 6
warn: fcntl: unsupported command 6
Failed to get Processor Vendor. Setting to GenuineIntel
warn: ignoring syscall sched_getaffinity(...)
*fatal: syscall sched_setaffinity (#203) unimplemented.*
Memory Usage: 1387884 KBytes
Thank you
Sungkeun Kim
I am trying to run a program compiled with HCC on top of GCN3, but I have
an issue regarding unimplemented system call "sched_setaffinity". Based on
my knowledge, this system call is call by one of the libraries that are
combined to the application during the compilation time. Strange thing is
that GCN3_X83 had been implemented "sched_setaffinity" system call but ROCM
library tries to use it. Could anyone help how to solve this case?
Following are my environment and romc/application/config/gem5 information
############################### INFO ##################################
# gem5
source >>> git clone https://gem5.googlesource.com/amd/gem5
-b agutierr/master-gcn3-staging
build command >>> scons -sQ -j4 ./build/GCN3_X86/gem5.opt
config file >>> configs/example/apu_se.py
# ROCM (version 1.6 to be compatible with gem5/GCN3)
packages source >>> downloaded from
http://repo.radeon.com/rocm/archive/apt_1.6.0.tar.bz2
# Development Desktop info
processor >>> Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
kernel >>> Linux ksungkeun84-server 4.9.0-kfd-compute-rocm-rel-1.6-77
#1 SMP Wed Jun 28 07:30:27 CDT 2017 x86_64 x86_64 x86_64 GNU/Linux
OS >>> Ubuntu 16.04
# Application
source code >>> sample application from
https://github.com/RadeonOpenCompute/hcc/wiki#how-to-use-hcc
compile command >>>
hcc `hcc-config --cxxflags` saxpy.cpp -c -o saxpy.cpp.o
hcc `hcc-config --ldflags` --amdgpu-target=gfx701 --amdgpu-target=gfx803
--amdgpu-target=gfx900 saxpy.cpp.o -o saxpy
# Launching simulation
environment setup for shell >>>
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/opt/rocm/lib
export PATH=${PATH}:/opt/rocm/bin
export HCC_RUNTIME=HSA
environment setup using apu_se.py >>>
- env = ['LD_LIBRARY_PATH=%s' % ':'.join([
- "/proj/radl_tools/rocm-1.6/lib",
- "/proj/radl_tools/rocm-1.6/hcc/lib64",
- "/tool/pandora64/.package/libunwind-1.1/lib",
- "/tool/pandora64/.package/gcc-6.4.0/lib64"
- ]),
- "HSA_ENABLE_INTERRUPT=0"]
+ env = [
+ 'LD_LIBRARY_PATH=%s' % ':'.join(["/opt/rocm/lib"]),
+ 'PATH=%s' % ':'.join(["/opt/rocm/bin"]),
+ "HSA_ENABLE_INTERRUPT=0"
+ "HCC_RUNTIME=HSA"]
run command >>> ./build/GCN3_X86/gem5.opt configs/example/apu_se.py
-c ./saxpy
# References
http://gem5.org/GPU_Models
############################### LOGS ##################################
Num SQC = 1 Num scalar caches = 1 Num CU = 4
hsapp_gpu_mapp_paddr: 536870912
env:
Global frequency set at 1000000000000 ticks per second
warn: system.ruby.network adopting orphan SimObject param 'int_links'
warn: system.ruby.network adopting orphan SimObject param 'ext_links'
warn: DRAM device capacity (8192 Mbytes) does not match the address range
assigned (512 Mbytes)
Forcing maxCoalescedReqs to 32 (TLB assoc.)
Forcing maxCoalescedReqs to 32 (TLB assoc.)
Forcing maxCoalescedReqs to 32 (TLB assoc.)
Forcing maxCoalescedReqs to 32 (TLB assoc.)
Forcing maxCoalescedReqs to 32 (TLB assoc.)
Forcing maxCoalescedReqs to 32 (TLB assoc.)
Forcing maxCoalescedReqs to 32 (TLB assoc.)
Forcing maxCoalescedReqs to 32 (TLB assoc.)
0: system.remote_gdb: listening for remote gdb on port 7000
info: Entering event queue @ 0. Starting simulation...
warn: Replacement policy updates recently became the responsibility of
SLICC state machines. Make sure to setMRU() near callbacks in .sm files!
warn: x86 cpuid family 0x0000: unimplemented function 7
warn: ignoring syscall access(...)
warn: ignoring syscall access(...)
warn: ignoring syscall mprotect(...)
warn: ignoring syscall access(...)
warn: ignoring syscall mprotect(...)
warn: ignoring syscall access(...)
warn: ignoring syscall mprotect(...)
warn: ignoring syscall access(...)
warn: ignoring syscall mprotect(...)
warn: ignoring syscall access(...)
warn: ignoring syscall mprotect(...)
warn: ignoring syscall access(...)
warn: ignoring syscall mprotect(...)
...
warn: fcntl: unsupported command 6
warn: fcntl: unsupported command 6
Failed to get Processor Vendor. Setting to GenuineIntel
warn: ignoring syscall sched_getaffinity(...)
*fatal: syscall sched_setaffinity (#203) unimplemented.*
Memory Usage: 1387884 KBytes
Thank you
Sungkeun Kim