JuliaLang / JuliaLang/PackageCompiler.jl
Warning when requiring GPUArraysCore from ArrayInterface with Adapt.jl in sys_image generated by PackageCompile
- Dominant language
- Julia
- Stars
- 1.6k
- Forks
- 205
- Avg merge
- 18h 37m
- Merged PRs (30d)
- 7
Description
I am getting the following warning when I run a sysimage generated with the function `create_sysimage`:

This doesn't happen when I run the code from inside the julia REPL, only from a generated image. I'm still trying to figure out if this error has anything to do with the PackageCompiler or any of the other dependencies in project.
Here is a list of the project's dependencies:
```
[deps]
ARCHModels = "6d3278bc-c23a-5105-85e5-0d57d2bf684f"
AWS = "fbe9abb3-538b-5e4e-ba9e-bc94f4f92ebc"
AWSSQS = "6e80b5ca-5733-51f9-999e-c18680912812"
BoxCoxTrans = "4c24c29e-1bf7-59e2-a6c7-e500a6482ce4"
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
Clustering = "aaaa29a8-35af-508c-8bc3-b662a17a0fe5"
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
Conda = "8f4d0f93-b110-5947-807f-2305c1781a2d"
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
DecisionTree = "7806a523-6efd-50cb-b5f6-3fa6f1930dbb"
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
DotEnv = "4dc1fcf4-5e3b-5448-94ab-0c38ec0385c1"
GLM = "38e38edf-8417-5370-95a0-9cbb8c7f171a"
GLMNet = "8d5ece8b-de18-5317-b113-243142960cc6"
HTTP = "cd3eb016-35fb-5094-929b-558a96fad6f3"
HypothesisTests = "09f84164-cd44-5f33-b23f-e6b0d136a0d5"
Ipopt = "b6b21f68-93f8-5de0-b562-5493be1d77c9"
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
JuMP = "4076af6c-e467-56ae-b986-b466b2749572"
KernelDensity = "5ab0869b-81aa-558d-bb23-cbf5423bbe9b"
Kuber = "87e52247-8a1b-5e01-9430-8fbcac83a23a"
LIBLINEAR = "2d691ee1-e668-5016-a719-b2531b85e0f5"
Lasso = "b4fcebef-c861-5a0f-a7e2-ba9dc32b180a"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
MLJBase = "a7f614a8-145f-11e9-1d2a-a57a1082229d"
Mongoc = "4fe8b98c-fc19-5c23-8ec2-168ff83495f2"
NLsolve = "2774e3e8-f4cf-5e23-947b-6d7e65073b56"
OrderedCollections = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
PackageCompiler = "9b87118b-4619-50d2-8e1e-99f35a4d4d9d"
Parameters = "d96e819e-fc66-5662-9728-84c9c7592b0a"
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
PyCall = "438e738f-606a-5dbb-bf0a-cddfbfd45ab0"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Retry = "20febd7b-183b-5ae2-ac4a-720e7ce64774"
Rmath = "79098fc4-a85e-5d69-aa6a-4863f24498fa"
SCIP = "82193955-e24f-5292-bf16-6f2c5261a85f"
SHA = "ea8e919c-243c-51af-8825-aaa63cd721ce"
ScoreDrivenModels = "4a87933e-d659-11e9-0e65-7f40dedd4a3a"
Serialization = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
StateSpaceModels = "99342f36-827c-5390-97c9-d7f9ee765c78"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
StringEncodings = "69024149-9ee7-55f6-a4c4-859efe599b68"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
TestItemRunner = "f8b46487-2199-4994-9208-9a1283c18c0a"
TestItems = "1c621080-faea-4a02-84b6-bbd5e436b8fe"
TimeSeriesInterface = "b6905eaa-d2af-11ea-0aca-2dc76a442461"
UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
XGBoost = "009559a3-9522-5dbb-924b-0b6ed2b22bb9"
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the warning with PackageCompiler's create_sysimage using the listed dependency environment, then compare behavior in the generated sysimage with the Julia REPL. Trace the require path involving GPUArraysCore, ArrayInterface, and Adapt.jl to determine whether PackageCompiler or a dependency is responsible; done means identifying the source and confirming the warning is resolved or properly characterized.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100